Page 1 of 1

Tuxedo Control Center and SysVInit  [Solved]

Posted: Wed Jan 06, 2021 8:23 am
by xamio
Hi all,

I download the Tuxedo Control Center, mainly for controlling the fan speed. It works fine when I launch MX with systemd but under SysVinit it gives me the following error:
Communication with tccd service unavailable, please restart service and try again.

So I tried to launch the service using the following command:

Code: Select all

service /opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/service/tccd start
Now I get the following error:
tccd: unrecognized service

Does anyone have success running tuxedo control center with sysvinit? The pacakge is from tuxedo computers.

Kind regards,
xamio.

Re: Tuxedo Control Center and SysVInit

Posted: Wed Jan 06, 2021 8:26 am
by dolphin_oracle
can you provide a link for the download?

Re: Tuxedo Control Center and SysVInit

Posted: Wed Jan 06, 2021 8:53 am
by fehlix
I guess, those two service files tccd-sleep.service and tccd.service
from here:
https://github.com/tuxedocomputers/tuxe ... /dist-data
needs to get converted to a sysVinit service and a /etc/pm/sleep.d config-file.

Re: Tuxedo Control Center and SysVInit

Posted: Wed Jan 06, 2021 9:09 am
by dolphin_oracle
running the thing manually with this :

Code: Select all

sudo /opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/service/tccd --start
perhaps.

Re: Tuxedo Control Center and SysVInit

Posted: Thu Jan 07, 2021 2:10 am
by xamio
thanks for the quick replies, i got it working!

i found a conversion script for the systemd service to sysvinit here:
viewtopic.php?f=6&t=54151
http://www.trek.eu.org/devel/sysd2v/

then i created a shell script and it's working like a charm.

Re: Tuxedo Control Center and SysVInit

Posted: Thu Jan 07, 2021 2:21 am
by JayM
If this is solved to your satisfaction, could you please edit your original post #1 at the very top of the topic by clicking the pencil tip icon, the one circled in red in my screenshot image below (yours won't have the red circle)
Image
and add [SOLVED] at the front of the subject? This will make it easier for others when they search the forum looking for a solution to the same problem. Thanks.

Re: Tuxedo Control Center and SysVInit

Posted: Thu Jan 07, 2021 8:39 am
by SwampRabbit
xamio wrote: Thu Jan 07, 2021 2:10 am thanks for the quick replies, i got it working!

i found a conversion script for the systemd service to sysvinit here:
viewtopic.php?f=6&t=54151
http://www.trek.eu.org/devel/sysd2v/

then i created a shell script and it's working like a charm.
Did you have to do anything extra to the init script after using sysd2v?

I'd be interested in packaging this for our repo for all MX users, it'd save a bit of time if I knew how things went for you.
By chance did you create a /etc/pm/sleep.d config-file like fehlix mentioned as well?

Re: [SOLVED] Tuxedo Control Center and SysVInit

Posted: Fri Jan 08, 2021 6:57 am
by xamio
hi swamprabbit,

no i didn't change the init script as generated by the sysd2v script.

i tried to convert the tccd sleep service as well but in the resulting script it looked like it still called systemd so i just ignored it.

br,
xamio.

Re: [SOLVED] Tuxedo Control Center and SysVInit

Posted: Fri Jan 08, 2021 8:14 am
by SwampRabbit
xamio wrote: Fri Jan 08, 2021 6:57 am hi swamprabbit,

no i didn't change the init script as generated by the sysd2v script.

i tried to convert the tccd sleep service as well but in the resulting script it looked like it still called systemd so i just ignored it.
Thank you for that info, will save a little bit of time.

Do you have a Tuxedo computer that you are running MX on?

Re: Tuxedo Control Center and SysVInit

Posted: Fri Jan 08, 2021 8:40 am
by fehlix
xamio wrote: Thu Jan 07, 2021 2:10 am thanks for the quick replies, i got it working!

i found a conversion script for the systemd service to sysvinit here:
viewtopic.php?f=6&t=54151
http://www.trek.eu.org/devel/sysd2v/

then i created a shell script and it's working like a charm.
OK, thanks for lettings us know that SysVinit script works.
For the record and example:
We take this service files:

tccd.service

Code: Select all

[Unit]
Description=TUXEDO Control Center Service

[Service]
Type=simple
ExecStart=/opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/service/tccd --start
ExecStop=/opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/service/tccd --stop

[Install]
WantedBy=multi-user.target
and convert it to an SysVinit script as /etc/init.d/tccd using sysd2v:
e.g like this
./sysd2v-0.3.sh tccd.service | sudo tee /etc/init.d/tccd

Code: Select all

#!/bin/sh
# Generated by sysd2v v0.3  --  http://www.trek.eu.org/devel/sysd2v
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
    set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
### BEGIN INIT INFO
# Provides:       tccd
# Required-Start: $remote_fs
# Required-Stop:  $remote_fs
# Default-Start:  2 3 4 5
# Default-Stop:   0 1 6
# Description:    TUXEDO Control Center Service
### END INIT INFO
DAEMON=/opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/service/tccd
DAEMON_ARGS="--start"
PIDFILE=/var/run/tccd-sysd2v.pid
START_ARGS="--background --make-pidfile"

do_stop_cmd_override ()
{
  /opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/service/tccd --stop || return 2
  do_stop_cmd
  true
}

and
make it executable

Code: Select all

sudo chmod +x /etc/init.d/tccd
and install SysVinit script links:

Code: Select all

sudo update-rc.d tccd defaults
and start tccd sysvinit service with

Code: Select all

sudo service tccd start
Next to convert the sleep/resume systemd service,
to an pm-hook this way:
The provide systemd.service
tccd-sleep.service

Code: Select all

[Unit]
Description=TUXEDO Control Center Service (sleep/resume)
Before=sleep.target
StopWhenUnneeded=yes

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/bash -c "systemctl stop tccd"
ExecStop=/bin/bash -c "systemctl start tccd"

[Install]
get manually converted based on this pm hook here:
/usr/lib/pm-utils/sleep.d/49tlp

We create a similar pm-hook at
/etc/pm/sleep.d/49tccd

Code: Select all

#!/bin/sh
# copy to /etc/pm/sleep.d/49tccd
#
# tccd - handle suspend/hibernate/resume tasks
# TUXEDO Control Center Service
# adjusted by fehlix at mxlinux dot org

# based on:
# /usr/lib/pm-utils/sleep.d/49tlp
# Copyright (c) 2018 Thomas Koch <linrunner at gmx.net>
# This software is licensed under the GPL v2 or later.

. "${PM_FUNCTIONS}"

case $1 in
    hibernate|suspend)
        service tccd stop
        ;;

    thaw|resume)
        service tccd start
        ;;

    *) exit $NA
        ;;
esac

exit 0
and make it executable

Code: Select all

sudo chmod +x /etc/pm/sleep.d/49tccd
Perhaps would be nice, if someone could checkout whether this sleep/resume pm-hook
would work with tccd.
Thanks

Re: Tuxedo Control Center and SysVInit

Posted: Fri Jan 08, 2021 4:36 pm
by SwampRabbit
fehlix wrote: Fri Jan 08, 2021 8:40 am Perhaps would be nice, if someone could checkout whether this sleep/resume pm-hook
would work with tccd.
Thanks
Thanks for taking the time to break that all down fehlix, will help save some time when I get to packaging it.

I plan on packaging it this weekend at some point.

Re: [SOLVED] Tuxedo Control Center and SysVInit

Posted: Fri Jan 08, 2021 11:09 pm
by xamio
SwampRabbit wrote: Fri Jan 08, 2021 8:14 am Do you have a Tuxedo computer that you are running MX on?
Yes. Although it should work on other laptops as well. If you would like me to test something just let me know.

Re: [SOLVED] Tuxedo Control Center and SysVInit

Posted: Fri Jan 08, 2021 11:42 pm
by SwampRabbit
xamio wrote: Fri Jan 08, 2021 11:09 pm Yes. Although it should work on other laptops as well. If you would like me to test something just let me know.
Thank you, I was really asking because I saw they had other official Tuxedo applications and was wondering if any other ones should be packaged as well, ones that are specific to Tuxedo systems. The better we can support users specific systems it makes users not shy away from certain vendors. :)

Re: [SOLVED] Tuxedo Control Center and SysVInit

Posted: Sat Jan 09, 2021 3:37 am
by xamio
They do offer a script that you can run after installing a distro, but it only supports Ubuntu, Linux Mint or OpenSuse as far as I know.

You can find it here:
https://www.tuxedocomputers.com/en/Adju ... ion.tuxedo, bottom of the page tuxedo.sh script. It tweaks your system a bit more but tbh I haven't tried to run it on MX.

You can take a look if you want to see what additional software it installs.

Re: [SOLVED] Tuxedo Control Center and SysVInit

Posted: Sat Jan 09, 2021 10:19 pm
by SwampRabbit
xamio wrote: Sat Jan 09, 2021 3:37 am They do offer a script that you can run after installing a distro, but it only supports Ubuntu, Linux Mint or OpenSuse as far as I know.

You can find it here:
https://www.tuxedocomputers.com/en/Adju ... ion.tuxedo, bottom of the page tuxedo.sh script. It tweaks your system a bit more but tbh I haven't tried to run it on MX.

You can take a look if you want to see what additional software it installs.
Thanks, I started preparing to package tuxedo-control-center already, but one minor snag...

They didn't actually create a Debian source package to build packages from, they just created .debs and uploaded them to their repo.

I'm building the package from scratch right now, but it seems I need to package tuxedo-keyboard, and probably other things first.
I may post on their GitHub about this, because they could at least list all build dependencies and dependencies on their GitHub.
And its already proven they can have that init script pretty easily.

I get they probably only want users to use the distros and repos they ship with their computers, but not everyone wants Ubuntu with Budgie desktop.
I'd think they'd sell a lot more computers if didn't limit themselves, I'll package tuxedo-control-center and tuxedo-keyboard, even the rest of the things needed for MX to work OOTB, they just got to do a little bit to help me do it faster lol. :p

Re: [SOLVED] Tuxedo Control Center and SysVInit

Posted: Sat Jan 30, 2021 7:43 am
by Mortivarus
According to their github page you also need to add com.tuxedocomputers.tccd.conf to /usr/share/dbus-1/system.d/
Will this just work or does it require a special doohicky to make it work for sysvinit?

Edit: even with the tccd service active, the Tuxedo control center app does not launch, claiming it couldn't communicate with tccd service.

Re: [SOLVED] Tuxedo Control Center and SysVInit

Posted: Sat Jan 30, 2021 9:24 am
by SwampRabbit
Mortivarus wrote: Sat Jan 30, 2021 7:43 am According to their github page you also need to add com.tuxedocomputers.tccd.conf to /usr/share/dbus-1/system.d/
Will this just work or does it require a special doohicky to make it work for sysvinit?

Edit: even with the tccd service active, the Tuxedo control center app does not launch, claiming it couldn't communicate with tccd service.
You might have to boot with systemd in the mean time for this to work as it currently is. A sysvinit script needs created at some point from the looks of it.

Packaging this is still a ways off, only way to get it faster is if Tuxedo Computers Debianizes their own stuff or provides all the info to make it get done faster. They are a company that makes $ off people that use their computers, if they only want people to use their provided Linux distros and repos that’s fine, but we don’t get paid to help them sell computers so it’s gonna take time to get this ready. Actually we don’t get paid for any of this ever lol :P

Not saying we won’t help our users who own these systems, but Tuxedo Computers ain’t making it easy to just build this and be done.

Re: Tuxedo Control Center and SysVInit

Posted: Sat Jan 30, 2021 12:48 pm
by Mortivarus
Oh don't worry, Tuxedo (and by extension Clevo, as they use the same hardware) should just get their head out of their own ass and actually fullfill their promise of supporting Linux. I'm already very pleased by the level of support you all give and the ease of the tools you make. I just wish I had all the technical knowledge to do it myself. Then I wouldn't have to wait for a lazy company or bother busy volunteers with my questions.

Re: Tuxedo Control Center and SysVInit

Posted: Fri Feb 12, 2021 9:13 am
by Vanitarium
Thank you for this post. I have followed your tips and got my Aura15v.1 with tuxedo keyboard and Control Centre running a treat. Thanks to you all..... :number1: :number1: :number1:

Re: Tuxedo Control Center and SysVInit

Posted: Tue Feb 23, 2021 1:39 pm
by Vanitarium
@SwampRabbit:
just to get info may I ask how you are getting on with this package? If you want me to contact Tuxedo Computers and push a few levers, let me know.
Could you explain what it means when you say
They didn't actually create a Debian source package to build packages from, they just created .debs and uploaded them to their repo.
I could use your comment to ask if they can create the source package?
Let me know what would help with your packaging job!
I have bought the laptop and I can raise questions with Tuxedo under their support and warranty ... 9_9 ;)

Re: Tuxedo Control Center and SysVInit

Posted: Wed Feb 24, 2021 10:30 am
by SwampRabbit
@Vanitarium I didn't get the mention notification, I guess cause you added the : to the end there.

As far as progress, not much has been made except some hunting and looking deeper at their .deb.
Currently working on too many things in real life and for MX right now.

Please feel free to talk with Tuxedo, that would be wonderful and if they are responsive and want to help that would definitely speed things up a lot.

The source code is here:
https://github.com/tuxedocomputers/tuxe ... rol-center
So that is great.

What is missing is the "Debianization" or Debian Source Folder/Files.
Mainly the specific "control" and "rules" files are the biggest if they can produce or create them.
These two files usually are where any nuances are missed and needed.

We could do this, but it takes a bit of work digging through everything they have and fully understanding how the package is and how it needs compiled (built). Its an Electron app it seems, usually they aren't too much trouble, but then again you never know right away.

They know their applications best, so it is really helpful when provide at least the full list of actual Build & Runtime Dependencies.
From their GitHub, looks like we can work it out, but what is listed isn't always exactly right.

If I remember right tuxedo-control-center needs a few other tuxedo packages from last time I looked, so those would need "Debianized" as well.

Like I said, we can do this work, but it's gonna take longer (if its waiting solely on me right now at least).

And thanks for being willing to go the extra mile on this, I am sure our users who own Tuxedo computers will be very thankful!

Re: Tuxedo Control Center and SysVInit

Posted: Thu Feb 25, 2021 4:10 am
by Vanitarium
@SwampRabbit

Do you know that the tcc is on the Arch AUR repo here?

https://aur.archlinux.org/packages/tuxe ... ol-center/

I have contacted Tuxedo today via their support system and shall post their reply here (or via PM).
Thanks for your encouragement. I hope we can make some progress towards a deb package!!
Thanks for dedicating your developer skills to MX!
:number1: :crossfingers:

Re: Tuxedo Control Center and SysVInit

Posted: Thu Feb 25, 2021 7:04 am
by SwampRabbit
Cool, thanks. Yes I already scoped out all the other packages made by other distros. I think the only thing I haven’t done is searched Ubuntu PPAs yet. But typically if a package hasn’t been Debianized already, no one would have created a PPA for something like this if there is already an official.dev.

Re: Tuxedo Control Center and SysVInit

Posted: Thu Feb 25, 2021 8:30 am
by dolphin_oracle
is all this thing need is an init script?

we could just package the init script. which is far less of a job.

Re: Tuxedo Control Center and SysVInit

Posted: Thu Feb 25, 2021 8:56 am
by Vanitarium
Well here is a bit of tuxedo stuff on Ubuntu:

https://deb.tuxedocomputers.com/ubuntu/pool/main/t/

Sorry but I am too ignorant to know if these help at all!
Hope they do..... :crossfingers: :crossfingers: :crossfingers:

Re: Tuxedo Control Center and SysVInit

Posted: Thu Feb 25, 2021 9:00 am
by SwampRabbit
dolphin_oracle wrote: Thu Feb 25, 2021 8:30 am is all this thing need is an init script?

we could just package the init script. which is far less of a job.
No sir, it’s actually an application that is part of a suite of applications.

We could add an entry to MXPI I suppose to pull their .debs and install an init script. But they have multiple components to it as dependencies from what I saw.

Oh and while MXPI popular apps can do just that sort of thing, it’s up to you if you want to add an entry for something like this in there.

Re: Tuxedo Control Center and SysVInit

Posted: Wed Mar 17, 2021 8:28 am
by Vanitarium
@SwampRabbit
After a long wait I got this back from Tuxedo Computers:
Dear Mr. *****,

thanks for pushing TUXEDO in the MXLinux forums!

For packaging it might be the easiest way to just (re-) use our DEB package. This would save you from the hassle of "debinanization". If people willing to package it have questions it might be good to just open an issue on Github.

Thanks again for your efforts!
--
Mit freundlichen Grüßen / Kind regards
******************

TUXEDO Computers
I can give you names by PM if you need them.....
Not much help I presume? Let me know if I can help with more...I assume he means Tuxedo Computers github https://github.com/tuxedocomputers. :needcoffee:

Re: Tuxedo Control Center and SysVInit

Posted: Fri Apr 23, 2021 7:18 am
by Vanitarium
....mmmmmmh????????

Re: Tuxedo Control Center and SysVInit

Posted: Tue May 04, 2021 6:15 am
by Vanitarium
By the way I found a python script to convert systemd to SysVinit here:

https://github.com/akhilvij/systemd-to- ... -converter

Re: Tuxedo Control Center and SysVInit

Posted: Tue May 04, 2021 6:42 am
by fehlix
Is it still just the one piece mentioned in e.g. post #10 you need for getting the "Tuxedo Control Center" running in Sysvinit? If yes, we can do it just as we do now for other "3rd party" populare apps, where we now use sysd2v converter. FWIW, sysd2v script is now available comes with mx-packageinstaller/mx-packageinstaller-pkglist as we use it already for some and intend to use it for more as long as it provides a working init-script.

Re: Tuxedo Control Center and SysVInit

Posted: Fri May 07, 2021 5:13 am
by Vanitarium
Thanks @fehlix
It is as you say. I have written a guide on my blog to summarise it all. It includes the script as well for people who do not know how to find the script in their machines using pkglist.
https://liquorstane.ynh.fr/blog/2021/05 ... -mx-linux/

I hope this helps Tuxedo machine users with MXLinux running!!

Re: Tuxedo Control Center and SysVInit

Posted: Fri May 07, 2021 7:34 am
by fehlix
Vanitarium wrote: Fri May 07, 2021 5:13 am Thanks @fehlix
It is as you say. I have written a guide on my blog to summarise it all. It includes the script as well for people who do not know how to find the script in their machines using pkglist.
https://liquorstane.ynh.fr/blog/2021/05 ... -mx-linux/

I hope this helps Tuxedo machine users with MXLinux running!!
Thanks, will have a look. Note: with latest mx-package-installer-pkglists installed you'll find sysd2v.sh under /usr/bin.

Re: Tuxedo Control Center and SysVInit

Posted: Sat May 08, 2021 3:48 am
by Vanitarium
@fehlix
thanks. I will add that script path to my guide. My system is working just fine.