Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running "backlight ui" #14

Closed
centaurussa opened this issue May 13, 2021 · 8 comments
Closed

Error when running "backlight ui" #14

centaurussa opened this issue May 13, 2021 · 8 comments

Comments

@centaurussa
Copy link

Error:

Traceback (most recent call last):
  File "/usr/local/bin/backlight", line 36, in <module>
    init()
  File "/usr/share/tuxedo-backlight-control/ui.py", line 344, in init
    App(root)
  File "/usr/share/tuxedo-backlight-control/ui.py", line 58, in __init__
    initial_mode = backlight.mode.capitalize()
AttributeError: 'NoneType' object has no attribute 'capitalize'

Also, the app is not working when clicked at.

@webketje
Copy link
Owner

Hi @centaurussa, this error has been fixed in de724d7 but is not released yet.
However, this is an indication that something at OS-level is probably not correct. Which OS/version are you running? Which version of https://github.com/tuxedocomputers/tuxedo-keyboard have you installed?

Also have a look at #11, which reports exactly the same issue.

@hacheandres
Copy link

hacheandres commented May 24, 2021

Hello @webketje , i have the same problem working with kubuntu 21
image

@hacheandres
Copy link

hacheandres commented May 24, 2021

@webketje
I think tuxedo-keyboard it's already included in the kernel, but when I install backlight and I tried to run it I get this error.

myuser@mypc:~$ backlight ui
Tuxedo Backlight Ctrl: The tuxedo_keyboard module is not installed at /sys/devices/platform/tuxedo_keyboard/

Also I looked for a default installed config file for tuxedo buy i didn't find anything just this one:

myuser@mypc:~$ cat /usr/src/tuxedo-keyboard-3.0.5/tuxedo_keyboard.conf
options tuxedo-keyboard mode=0 brightness=75 color_left=0xFFFFFF color_center=0xFFFFFF color_right=0xFFFFFF

But I think that it's not the kind of structure you are using.

@webketje
Copy link
Owner

webketje commented May 24, 2021

@hacheandres The first 2 versions, 0.1, 0.2 of the widget used the modprobe tuxedo_keyboard.conf. I switched to the sysfs params because they are a more direct interface (live-synced) while the conf file requires modprobe loading. I retested tuxedo-backlight-control with the latest tuxedo_keyboard (3.0.5) on Linux Mint 20, kernel 5.4.0 and it worked fine. Could you try this and report back with the results?

  1. Make sure all traces of previous tuxedo-keyboard/backlight-control are removed: sudo dpkg -r tuxedo-keyboard && dpkg -r tuxedo-backlight-control
  2. git clone https://github.com/tuxedocomputers/tuxedo-keyboard.git && cd tuxedo-keyboard && git checkout v3.0.5
  3. sudo make clean && sudo make dkmsinstall
  4. sudo echo tuxedo_keyboard >> /etc/modules
  5. sudo modprobe tuxedo_keyboard
  6. Reboot
  7. Verify tuxedo_keyboard version: cat /sys/module/tuxedo_keyboard/version
  8. dpkg -i ~/Downloads/tuxedo-backlight-control_0.7-1_amd64.deb
  9. Try to run backlight ui

You can also see logs of the tuxedo_keyboard module by doing:

sudo journalctl | grep tuxedo_keyboard

You should find a line like

May 11 00:45:00 <user> systemd-modules-load[487]: Inserted module 'tuxedo_keyboard'

@hacheandres
Copy link

hacheandres commented May 25, 2021

Hi @webketje, I followed your instructions step by step but not lucky.

$ sudo journalctl | grep tuxedo_keyboard
may 25 19:23:55 kubuntu-tuf rmmod[5704]: ERROR: Module tuxedo_keyboard is not currently loaded
may 25 19:28:24 kubuntu-tuf sudo[8803]:    hache : TTY=pts/1 ; PWD=/home/hache/Downloads/tuxedo-keyboard ; USER=root ; 
COMMAND=/usr/sbin/modprobe tuxedo_keyboard
may 25 19:28:24 kubuntu-tuf kernel: tuxedo_keyboard: Model 'TUF Gaming FX505GT_FX505GT' found
may 25 19:29:27 kubuntu-tuf kernel: tuxedo_keyboard: Model 'TUF Gaming FX505GT_FX505GT' found
may 25 19:29:27 kubuntu-tuf systemd-modules-load[384]: Inserted module 'tuxedo_keyboard'
:~/Downloads$ backlight ui
Tuxedo Backlight Ctrl: The tuxedo_keyboard module is not installed at /sys/devices/platform/tuxedo_keyboard/
:~/Downloads$ cat /sys/module/tuxedo_keyboard/version
3.0.5

Just let me know what else I can do to help, of course I would like to make it work too.
Thanks in advance!

@webketje
Copy link
Owner

@hacheandres Are you sure these are the right drivers/ software for your model? tuxedo-backlight-control & tuxedo_keyboard are not generic Linux software, they only work for the Clevo, System76, Sager, Tuxedo and derivative laptops. I'm pretty sure yours is not (it's an ASUS). Maybe one of the suggestions here can help you: https://askubuntu.com/questions/1086070/keyboard-backlight-ubuntu-18-10-not-working

@hacheandres
Copy link

Thank you for help @webketje, I'll look in that link.
Regards,

@xevilstar
Copy link

same problem debian bookworm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants