webketje / tuxedo-backlight-control

Minimal Linux (Debian) CLI & UI for TUXEDO / Clevo computers Keyboard Backlight
MIT License
45 stars 9 forks source link

No such thing as /sys/devices/platform/tuxedo_keyboard/state on my laptop #20

Closed xevilstar closed 2 years ago

xevilstar commented 2 years ago

backlight color red Traceback (most recent call last): File "/usr/local/bin/backlight", line 69, in backlight.state = 1 File "/usr/share/tuxedo-backlight-control/backlight_control.py", line 122, in state self.set_device_param('state', str(value)) File "/usr/share/tuxedo-backlight-control/backlight_control.py", line 70, in set_device_param filehandle = open(BacklightControl.DEVICE_PATH + prop, mode='w') PermissionError: [Errno 13] Permission denied: '/sys/devices/platform/tuxedo_keyboard/state' root@ghost:# ls /sys/devices/platform/tuxedo_keyboard/state ls: cannot access '/sys/devices/platform/tuxedo_keyboard/state': No such file or directory root@ghost:# lsmod|grep tuxedo tuxedo_io 20480 0 tuxedo_keyboard 49152 3 tuxedo_io,uniwill_wmi,clevo_wmi sparse_keymap 16384 2 asus_wmi,tuxedo_keyboard

xevilstar commented 2 years ago

Permission denied: '/sys/devices/platform/tuxedo_keyboard/state' root@ghost:/usr/src/kernel# ls /sys/devices/platform/tuxedo_keyboard driver driver_override input modalias power subsystem uevent root@ghost:/usr/src/kernel# cat /sys/devices/platform/tuxedo_keyboard/state cat: /sys/devices/platform/tuxedo_keyboard/state: No such file or directory root@ghost:/usr/src/kernel# cat /sys/devices/platform/tuxedo_keyboard/
driver/ input/ power/ uevent
driver_override modalias subsystem/
root@ghost:/usr/src/kernel# ls /sys/devices/platform/tuxedo_keyboard/ driver driver_override input modalias power subsystem uevent

webketje commented 2 years ago

@xevilstar this unfortunately does not provide sufficient info. Your issue hints at tuxedo_keyboard not being correctly installed. If files are missing at /sys/devices/platform/tuxedo_keyboard/ it means tuxedo_keyboard is not properly installed, possibly because your laptop model is not supported. Did you try to reboot after installing tuxedo_keyboard? Rebooting has been reported to solve an issue previously.

To fully track the issue, the following info is needed:

xevilstar commented 2 years ago

Yes I have rebooted multiple times the leds work but I seem to be unable to change the color (missing state file) the keyboard chipset should be a clevo of some sort (I have made the producer make me a custom laptop at pcspecialist.it)

gcc --version gcc (Debian 11.2.0-16) 11.2.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

ld --version GNU ld (GNU Binutils for Debian) 2.38 Copyright (C) 2022 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty.

since with the patched 5.16.x kernel the directory /sys/devices/platform/tuxedo_keyboard was totally missing I have installed the rc of the 5.17 kernel and the directory magically appeared but without the "state" file https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

backlight --version 0.8.0

since the ui doesn't start

backlight ui Traceback (most recent call last): File "/usr/local/bin/backlight", line 43, in init() File "/usr/share/tuxedo-backlight-control/ui.py", line 353, in init App(root) File "/usr/share/tuxedo-backlight-control/ui.py", line 51, in init 'color_left': tk.StringVar(self, value=backlight.color_left.capitalize()), AttributeError: 'NoneType' object has no attribute 'capitalize'

I am using the cli from bash/root account

cat /etc/apt/sources.list

deb cdrom:[Debian GNU/Linux 11.2.0 Bookworm - Unofficial amd64 NETINST

with firmware 20211218-11:12]/ bookworm contrib main non-free

deb cdrom:[Debian GNU/Linux 11.2.0 Bookworm - Unofficial amd64 NETINST

with firmware 20211218-11:12]/ bookworm contrib main non-free

deb http://deb.debian.org/debian/ bookworm main non-free contrib deb-src http://deb.debian.org/debian/ bookworm main non-free contrib

deb http://security.debian.org/debian-security bookworm-security main contrib non-free deb-src http://security.debian.org/debian-security bookworm-security main contrib non-free

bookworm-updates, to get updates before a point release is made;

see

https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free deb-src http://deb.debian.org/debian/ bookworm-updates main contrib non-free

This system was installed using small removable media

(e.g. netinst, live or single CD). The matching "deb cdrom"

entries were disabled at the end of the installation process.

For information about how to configure apt package sources,

see the sources.list(5) manual.

uname -a Linux ghost 5.17.0-rc7-amd64 #1 SMP PREEMPT Mon Mar 7 12:22:19 CET 2022 x86_64 GNU/Linux

lsusb Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 004: ID 8087:0029 Intel Corp. AX200 Bluetooth Bus 003 Device 005: ID 048d:6008 Integrated Technology Express, Inc. ITE Device(8291) Bus 003 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub Bus 003 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 004: ID 045b:0210 Hitachi, Ltd Bus 002 Device 003: ID 05e3:0620 Genesys Logic, Inc. GL3523 Hub Bus 002 Device 002: ID 0bda:0316 Realtek Semiconductor Corp. Card Reader Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 04f2:b71a Chicony Electronics Co., Ltd HD Webcam Bus 001 Device 006: ID 046d:c07c Logitech, Inc. M-R0017 [G700s Rechargeable Gaming Mouse] Bus 001 Device 005: ID 2a7a:8a47 CASUE USB KB Bus 001 Device 004: ID 045b:0209 Hitachi, Ltd Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lshw ghost description: Notebook product: Standard (0001) vendor: PCSpecialist version: Standard serial: GM7ZN7M2214702145 width: 64 bits capabilities: smbios-3.3.0 dmi-3.3.0 smp vsyscall32 configuration: boot=normal chassis=notebook family=CEZANNE sku=0001 uuid=6f0cea00-5263-11ec-86ab-ee1d19a62800 -core description: Motherboard product: GM7ZN7M vendor: TongFang physical id: 0 version: Standard serial: Standard slot: Standard -firmware description: BIOS vendor: American Megatrends International, LLC. physical id: 0 version: N.1.24A10 date: 08/31/2021 size: 64KiB capacity: 16MiB capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppynec int13floppytoshiba int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb biosbootspecification uefi -memory description: System Memory physical id: 13 slot: System board or motherboard size: 64GiB -bank:0 description: SODIMM DDR4 Synchronous Unbuffered (Unregistered) 2667 MHz (0.4 ns) product: CM4X32GE2666C18S2 vendor: Unknown physical id: 0 serial: 00000000 slot: DIMM 0 size: 32GiB width: 64 bits clock: 2667MHz (0.4ns) -bank:1 description: SODIMM DDR4 Synchronous Unbuffered (Unregistered) 2667 MHz (0.4 ns) product: CM4X32GE2666C18S2 vendor: Unknown physical id: 1 serial: 00000000 slot: DIMM 0 size: 32GiB width: 64 bits clock: 2667MHz (0.4ns) -cache:0 description: L1 cache physical id: 15 slot: L1 - Cache size: 512KiB capacity: 512KiB clock: 1GHz (1.0ns) capabilities: pipeline-burst internal write-back unified configuration: level=1 -cache:1 description: L2 cache physical id: 16 slot: L2 - Cache size: 4MiB capacity: 4MiB clock: 1GHz (1.0ns) capabilities: pipeline-burst internal write-back unified configuration: level=2 -cache:2 description: L3 cache physical id: 17 slot: L3 - Cache size: 16MiB capacity: 16MiB clock: 1GHz (1.0ns) capabilities: pipeline-burst internal write-back unified configuration: level=3 *-cpu description: CPU product: AMD Ryzen 9 5900HX with Radeon Graphics vendor: Advanced Micro Devices [AMD] physical id: 18 bus info: @. version: 25.80.0 serial: Unknown slot: FP6 size: 3578MHz capacity: 4679MHz width: 64 bits clock: 100MHz capabilities: lm fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp x86-64 constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip pku ospke vaes vpclmulqdq rdpid overflow_recov succor smca fsrm cpufreq configuration: cores=8 enabledcores=8 microcode=173015052 threads=16 -pci:0 description: Host bridge product: Renoir/Cezanne Root Complex vendor: Advanced Micro Devices, Inc. [AMD] physical id: 100 bus info: **@.:00:00.0 version: 00 width: 32 bits clock: 33MHz -generic UNCLAIMED description: IOMMU product: Renoir/Cezanne IOMMU vendor: Advanced Micro Devices, Inc. [AMD] physical id: 0.2 bus info: **@.:00:00.2 version: 00 width: 32 bits clock: 33MHz capabilities: msi ht bus_master cap_list configuration: latency=0 -pci:0 description: PCI bridge product: Renoir PCIe GPP Bridge vendor: Advanced Micro Devices, Inc. [AMD] physical id: 1.1 bus info: **@.:00:01.1 version: 00 width: 32 bits clock: 33MHz capabilities: pci pm pciexpress msi ht normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:29 ioport:f000(size=4096) memory:fb000000-fc0fffff ioport:fc00000000(size=8623489024) -display description: VGA compatible controller product: GA104M [GeForce RTX 3070 Mobile / Max-Q] vendor: NVIDIA Corporation physical id: 0 bus info: **@.:01:00.0 version: a1 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress vga_controller bus_master cap_list rom configuration: driver=nvidia latency=0 resources: iomemory:fc0-fbf iomemory:fe0-fdf irq:98 memory:fb000000-fbffffff memory:fc00000000-fdffffffff memory:fe00000000-fe01ffffff ioport:f000(size=128) memory:fc000000-fc07ffff -multimedia description: Audio device product: GA104 High Definition Audio Controller vendor: NVIDIA Corporation physical id: 0.1 bus info: **@.:01:00.1 logical name: card0 logical name: /dev/snd/controlC0 logical name: /dev/snd/hwC0D0 logical name: /dev/snd/pcmC0D10p logical name: /dev/snd/pcmC0D3p logical name: /dev/snd/pcmC0D7p logical name: /dev/snd/pcmC0D8p logical name: /dev/snd/pcmC0D9p version: a1 width: 32 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list configuration: driver=snd_hda_intel latency=0 resources: irq:96 memory:fc080000-fc083fff -input:0 product: HDA NVidia HDMI/DP,pcm=3 physical id: 0 logical name: input18 logical name: /dev/input/event15 -input:1 product: HDA NVidia HDMI/DP,pcm=7 physical id: 1 logical name: input19 logical name: /dev/input/event16 -input:2 product: HDA NVidia HDMI/DP,pcm=8 physical id: 2 logical name: input20 logical name: /dev/input/event17 -input:3 product: HDA NVidia HDMI/DP,pcm=9 physical id: 3 logical name: input21 logical name: /dev/input/event18 -input:4 product: HDA NVidia HDMI/DP,pcm=10 physical id: 4 logical name: input22 logical name: /dev/input/event19 -pci:1 description: PCI bridge product: Renoir/Cezanne PCIe GPP Bridge vendor: Advanced Micro Devices, Inc. [AMD] physical id: 1.2 bus info: @.:00:01.2 version: 00 width: 32 bits clock: 33MHz capabilities: pci pm pciexpress msi ht normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:30 ioport:e000(size=4096) memory:fc900000-fc9fffff *-generic description: Ethernet interface product: RTL8125 2.5GbE Controller vendor: Realtek Semiconductor Co., Ltd. physical id: 0 bus info: @.:02:00.0 logical name: enp2s0 version: ff serial: b0:25:aa:49:a5:3a size: 100Mbit/s capacity: 1Gbit/s width: 32 bits clock: 66MHz capabilities: bus_master vga_palette cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.17.0-rc7-amd64 duplex=full firmware=rtl8125b-2_0.0.2 07/13/20 latency=255 link=yes maxlatency=255 mingnt=255 multicast=yes port=twisted pair speed=100Mbit/s resources: irq:74 ioport:e000(size=256) memory:fc900000-fc90ffff memory:fc910000-fc913fff -pci:2 description: PCI bridge product: Renoir/Cezanne PCIe GPP Bridge vendor: Advanced Micro Devices, Inc. [AMD] physical id: 2.1 bus info: **@.:00:02.1 version: 00 width: 32 bits clock: 33MHz capabilities: pci pm pciexpress msi ht normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:31 ioport:1000(size=4096) memory:fc800000-fc8fffff ioport:1010000000(size=2097152) -nvme description: NVMe device product: INTEL SSDPEKNU020TZ vendor: Intel Corporation physical id: 0 bus info: **@.:03:00.0 logical name: /dev/nvme0 version: 002C serial: PHKA146000W12P0C width: 64 bits clock: 33MHz capabilities: nvme pm msi pciexpress msix nvm_express bus_master cap_list configuration: driver=nvme latency=0 nqn=nqn.2021-11.com.intel:nvm-subsystem-sn-phka146000w12p0c state=live resources: irq:38 memory:fc800000-fc803fff memory:fc804000-fc823fff -namespace:0 description: NVMe disk physical id: 0 logical name: hwmon3 -namespace:1 description: NVMe disk physical id: 2 logical name: /dev/ng0n1 -namespace:2 description: NVMe disk physical id: 1 bus info: **@.:1 logical name: /dev/nvme0n1 size: 1907GiB (2048GB) capabilities: gpt-1.00 partitioned partitioned:gpt configuration: guid=5e094482-0910-4a05-a107-1a524956731d logicalsectorsize=512 sectorsize=512 wwid=eui.0000000001000000e4d25ce336135501 -volume description: LVM Physical Volume vendor: Linux physical id: 1 bus info: **@.:1,1 logical name: /dev/nvme0n1p1 serial: 92ebw8-Fp7d-VxQV-iII3-HfPl-JVWQ-GUOTFd size: 1907GiB capabilities: multi lvm2 -pci:3 description: PCI bridge product: Renoir/Cezanne PCIe GPP Bridge vendor: Advanced Micro Devices, Inc. [AMD] physical id: 2.2 bus info: **@.:00:02.2 version: 00 width: 32 bits clock: 33MHz capabilities: pci pm pciexpress msi ht normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:32 memory:fc700000-fc7fffff -network description: Wireless interface product: Wi-Fi 6 AX200 vendor: Intel Corporation physical id: 0 bus info: **@.:04:00.0 logical name: wlp4s0 version: 1a serial: dc:21:5c:17:96:fc width: 64 bits clock: 33MHz capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless configuration: broadcast=yes driver=iwlwifi driverversion=5.17.0-rc7-amd64 firmware=63.c04f3485.0 cc-a0-63.ucode ip=192.168.0.162 latency=0 link=yes multicast=yes wireless=IEEE 802.11 resources: irq:79 memory:fc700000-fc703fff -pci:4 description: PCI bridge product: Renoir/Cezanne PCIe GPP Bridge vendor: Advanced Micro Devices, Inc. [AMD] physical id: 2.4 bus info: **@.:00:02.4 version: 00 width: 32 bits clock: 33MHz capabilities: pci pm pciexpress msi ht normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:33 ioport:2000(size=4096) memory:fc600000-fc6fffff ioport:1010200000(size=2097152) -nvme description: NVMe device product: 256GB PCS PCIe M.2 SSD vendor: Silicon Motion, Inc. physical id: 0 bus info: **@.:05:00.0 logical name: /dev/nvme1 version: T1106A0 serial: AA202012029000458585 width: 64 bits clock: 33MHz capabilities: nvme pm msi pciexpress msix nvm_express bus_master cap_list configuration: driver=nvme latency=0 nqn=nqn.2014.08.org.nvmexpress:126f126fAA202012029000458585256GB PCS PCIe M.2 SSD state=live resources: irq:39 memory:fc600000-fc603fff -namespace:0 description: NVMe disk physical id: 0 logical name: hwmon2 -namespace:1 description: NVMe disk physical id: 2 logical name: /dev/ng1n1 -namespace:2 description: NVMe disk physical id: 1 bus info: **@.:1 logical name: /dev/nvme1n1 size: 238GiB (256GB) capabilities: gpt-1.00 partitioned partitioned:gpt configuration: guid=3895b398-1441-4e92-84b5-16d23bd70eef logicalsectorsize=512 sectorsize=512 wwid=eui.00000000000000000000010000000000 -volume:0 UNCLAIMED description: Windows FAT volume vendor: mkfs.fat physical id: 1 bus info: **@.:1,1 version: FAT32 serial: a92d-c1a5 size: 510MiB capacity: 511MiB capabilities: boot fat initialized configuration: FATs=2 filesystem=fat name=EFI System Partition -volume:1 description: EFI partition vendor: Linux physical id: 2 bus info: **@.:1,2 logical name: /dev/nvme1n1p2 logical name: /boot version: 1.0 serial: eee61bf3-32d4-4dda-94b1-660e3945fba8 size: 488MiB capabilities: extended_attributes large_files ext2 initialized configuration: filesystem=ext2 lastmountpoint=/boot modified=2022-03-08 08:43:35 mount.fstype=ext2 mount.options=rw,relatime mounted=2022-03-08 08:43:35 state=mounted -volume:2 description: LVM Physical Volume vendor: Linux physical id: 3 bus info: **@.:1,3 logical name: /dev/nvme1n1p3 serial: pLM6H5-aPhO-0vgL-Xn9z-1yxx-3xne-pnh6HR size: 237GiB capabilities: multi lvm2 -pci:5 description: PCI bridge product: Renoir Internal PCIe GPP Bridge to Bus vendor: Advanced Micro Devices, Inc. [AMD] physical id: 8.1 bus info: **@.:00:08.1 version: 00 width: 32 bits clock: 33MHz capabilities: pci pm pciexpress msi normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:34 memory:fc200000-fc5fffff -generic:0 UNCLAIMED description: Non-Essential Instrumentation product: Zeppelin/Raven/Raven2 PCIe Dummy Function vendor: Advanced Micro Devices, Inc. [AMD] physical id: 0 bus info: **@.:06:00.0 version: c4 width: 32 bits clock: 33MHz capabilities: pm pciexpress cap_list configuration: latency=0 -generic:1 description: Encryption controller product: Family 17h (Models 10h-1fh) Platform Security Processor vendor: Advanced Micro Devices, Inc. [AMD] physical id: 0.2 bus info: **@.:06:00.2 version: 00 width: 32 bits clock: 33MHz capabilities: pm pciexpress msi msix bus_master cap_list configuration: driver=ccp latency=0 resources: irq:38 memory:fc400000-fc4fffff memory:fc548000-fc549fff -usb:0 description: USB controller product: Renoir/Cezanne USB 3.1 vendor: Advanced Micro Devices, Inc. [AMD] physical id: 0.3 bus info: **@.:06:00.3 version: 00 width: 64 bits clock: 33MHz capabilities: pm pciexpress msi msix xhci bus_master cap_list configuration: driver=xhci_hcd latency=0 resources: irq:36 memory:fc300000-fc3fffff -usbhost:0 product: xHCI Host Controller vendor: Linux 5.17.0-rc7-amd64 xhci-hcd physical id: 0 bus info: **@. logical name: usb1 version: 5.17 capabilities: usb-2.00 configuration: driver=hub slots=4 speed=480Mbit/s -usb:0 description: USB hub product: USB2.1 Hub vendor: GenesysLogic physical id: 2 bus info: **@.:2 version: 23.11 capabilities: usb-2.10 configuration: driver=hub slots=2 speed=480Mbit/s -usb description: USB hub vendor: Hitachi, Ltd physical id: 2 bus info: **@.:2.2 version: 1.00 capabilities: usb-2.10 configuration: driver=hub slots=4 speed=480Mbit/s -usb:0 description: Keyboard product: CASUE USB KB Consumer Control physical id: 1 bus info: **@.:2.2.1 logical name: input10 logical name: /dev/input/event10 logical name: input8 logical name: /dev/input/event8 logical name: input8::capslock logical name: input8::compose logical name: input8::kana logical name: input8::numlock logical name: input8::scrolllock logical name: input9 logical name: /dev/input/event9 version: 0.01 capabilities: usb-1.10 usb configuration: driver=usbhid maxpower=100mA speed=2Mbit/s -usb:1 description: Mouse product: Logitech G700s Rechargeable Gaming Mouse Keyboard vendor: Logitech physical id: 4 bus info: **@.:2.2.4 logical name: input14 logical name: /dev/input/event12 logical name: /dev/input/mouse2 logical name: input15 logical name: /dev/input/event13 version: 85.00 serial: 1E8708890007 capabilities: usb-2.00 usb configuration: driver=usbhid maxpower=498mA speed=12Mbit/s -usb:1 description: Video product: HD Webcam: IR Camera vendor: SunplusIT Inc physical id: 4 bus info: **@.:4 logical name: input23 logical name: /dev/input/event14 logical name: input24 logical name: /dev/input/event20 version: 0.03 serial: 01.00.00 capabilities: usb-2.01 usb configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s -usbhost:1 product: xHCI Host Controller vendor: Linux 5.17.0-rc7-amd64 xhci-hcd physical id: 1 bus info: **@. logical name: usb2 version: 5.17 capabilities: usb-3.10 configuration: driver=hub slots=2 speed=10000Mbit/s -usb:0 description: Mass storage device product: USB3.0-CRW vendor: Generic physical id: 1 bus info: **@.:1 logical name: scsi0 version: 2.04 serial: 20120501030900000 capabilities: usb-3.00 scsi emulated configuration: driver=usb-storage maxpower=800mA speed=5000Mbit/s -disk description: SCSI Disk product: SD/MMC vendor: Generic- physical id: 0.0.0 bus info: **@.:0.0.0 logical name: /dev/sda version: 1.00 serial: 2012090114345300 capabilities: removable configuration: ansiversion=6 logicalsectorsize=512 sectorsize=512 -medium physical id: 0 logical name: /dev/sda -usb:1 description: USB hub product: USB3.2 Hub vendor: GenesysLogic physical id: 2 bus info: @.:2 version: 23.11 capabilities: usb-3.20 configuration: driver=hub slots=2 speed=5000Mbit/s *-usb description: USB hub vendor: Hitachi, Ltd physical id: 2 bus info: @.:2.2 version: 1.00 capabilities: usb-3.00 configuration: driver=hub slots=4 speed=5000Mbit/s -usb:1 description: USB controller product: Renoir/Cezanne USB 3.1 vendor: Advanced Micro Devices, Inc. [AMD] physical id: 0.4 bus info: **@.:06:00.4 version: 00 width: 64 bits clock: 33MHz capabilities: pm pciexpress msi msix xhci bus_master cap_list configuration: driver=xhci_hcd latency=0 resources: irq:49 memory:fc200000-fc2fffff -usbhost:0 product: xHCI Host Controller vendor: Linux 5.17.0-rc7-amd64 xhci-hcd physical id: 0 bus info: **@. logical name: usb3 version: 5.17 capabilities: usb-2.00 configuration: driver=hub slots=4 speed=480Mbit/s -usb:0 description: USB hub product: USB 2.0 Hub vendor: Terminus Technology Inc. physical id: 1 bus info: **@.:1 version: 1.11 capabilities: usb-2.00 configuration: driver=hub maxpower=100mA slots=4 speed=480Mbit/s -usb:1 description: USB hub product: Hub vendor: Genesys Logic, Inc. physical id: 3 bus info: **@.:3 version: 60.70 capabilities: usb-2.10 configuration: driver=hub maxpower=500mA slots=4 speed=480Mbit/s -usb description: Keyboard product: ITE Device(8291) vendor: ITE Tech. Inc. physical id: 3 bus info: **@.:3.3 version: 0.03 capabilities: usb-2.00 configuration: driver=usbhid maxpower=100mA speed=12Mbit/s -usb:2 description: Bluetooth wireless interface product: AX200 Bluetooth vendor: Intel Corp. physical id: 4 bus info: **@.:4 version: 0.01 capabilities: bluetooth usb-2.01 configuration: driver=btusb maxpower=100mA speed=12Mbit/s -usbhost:1 product: xHCI Host Controller vendor: Linux 5.17.0-rc7-amd64 xhci-hcd physical id: 1 bus info: **@. logical name: usb4 version: 5.17 capabilities: usb-3.10 configuration: driver=hub slots=2 speed=10000Mbit/s -multimedia:0 UNCLAIMED description: Multimedia controller product: Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Advanced Micro Devices, Inc. [AMD] physical id: 0.5 bus info: **@.:06:00.5 version: 01 width: 32 bits clock: 33MHz capabilities: pm pciexpress msi cap_list configuration: latency=0 resources: memory:fc500000-fc53ffff -multimedia:1 description: Audio device product: Family 17h (Models 10h-1fh) HD Audio Controller vendor: Advanced Micro Devices, Inc. [AMD] physical id: 0.6 bus info: **@.:06:00.6 logical name: card1 logical name: /dev/snd/controlC1 logical name: /dev/snd/hwC1D0 logical name: /dev/snd/pcmC1D0c logical name: /dev/snd/pcmC1D0p version: 00 width: 32 bits clock: 33MHz capabilities: pm pciexpress msi bus_master cap_list configuration: driver=snd_hda_intel latency=0 resources: irq:97 memory:fc540000-fc547fff -input:0 product: HD-Audio Generic Mic physical id: 0 logical name: input26 logical name: /dev/input/event22 -input:1 product: HD-Audio Generic Headphone physical id: 1 logical name: input27 logical name: /dev/input/event23 -serial description: SMBus product: FCH SMBus Controller vendor: Advanced Micro Devices, Inc. [AMD] physical id: 14 bus info: **@.:00:14.0 version: 51 width: 32 bits clock: 66MHz configuration: driver=piix4_smbus latency=0 resources: irq:0 -isa description: ISA bridge product: FCH LPC Bridge vendor: Advanced Micro Devices, Inc. [AMD] physical id: 14.3 bus info: **@.:00:14.3 version: 51 width: 32 bits clock: 66MHz capabilities: isa bus_master configuration: latency=0 -pnp00:00 product: PnP device PNP0c01 physical id: 0 capabilities: pnp configuration: driver=system -pnp00:01 product: PnP device PNP0b00 physical id: 1 capabilities: pnp configuration: driver=rtc_cmos -pnp00:02 product: PnP device PNP0303 physical id: 2 capabilities: pnp configuration: driver=i8042 kbd -pnp00:03 product: PnP device PNP0c02 physical id: 3 capabilities: pnp configuration: driver=system -pci:1 description: Host bridge product: Renoir PCIe Dummy Host Bridge vendor: Advanced Micro Devices, Inc. [AMD] physical id: 101 bus info: **@.:00:01.0 version: 00 width: 32 bits clock: 33MHz -pci:2 description: Host bridge product: Renoir PCIe Dummy Host Bridge vendor: Advanced Micro Devices, Inc. [AMD] physical id: 102 bus info: **@.:00:02.0 version: 00 width: 32 bits clock: 33MHz -pci:3 description: Host bridge product: Renoir PCIe Dummy Host Bridge vendor: Advanced Micro Devices, Inc. [AMD] physical id: 103 bus info: **@.:00:08.0 version: 00 width: 32 bits clock: 33MHz -pci:4 description: Host bridge product: Cezanne Data Fabric; Function 0 vendor: Advanced Micro Devices, Inc. [AMD] physical id: 104 bus info: **@.:00:18.0 version: 00 width: 32 bits clock: 33MHz -pci:5 description: Host bridge product: Cezanne Data Fabric; Function 1 vendor: Advanced Micro Devices, Inc. [AMD] physical id: 105 bus info: **@.:00:18.1 version: 00 width: 32 bits clock: 33MHz -pci:6 description: Host bridge product: Cezanne Data Fabric; Function 2 vendor: Advanced Micro Devices, Inc. [AMD] physical id: 106 bus info: **@.:00:18.2 version: 00 width: 32 bits clock: 33MHz -pci:7 description: Host bridge product: Cezanne Data Fabric; Function 3 vendor: Advanced Micro Devices, Inc. [AMD] physical id: 107 bus info: **@.:00:18.3 version: 00 width: 32 bits clock: 33MHz configuration: driver=k10temp resources: irq:0 -pci:8 description: Host bridge product: Cezanne Data Fabric; Function 4 vendor: Advanced Micro Devices, Inc. [AMD] physical id: 108 bus info: **@.:00:18.4 version: 00 width: 32 bits clock: 33MHz -pci:9 description: Host bridge product: Cezanne Data Fabric; Function 5 vendor: Advanced Micro Devices, Inc. [AMD] physical id: 109 bus info: **@.:00:18.5 version: 00 width: 32 bits clock: 33MHz -pci:10 description: Host bridge product: Cezanne Data Fabric; Function 6 vendor: Advanced Micro Devices, Inc. [AMD] physical id: 10a bus info: **@.:00:18.6 version: 00 width: 32 bits clock: 33MHz -pci:11 description: Host bridge product: Cezanne Data Fabric; Function 7 vendor: Advanced Micro Devices, Inc. [AMD] physical id: 10b bus info: **@.**:00:18.7 version: 00 width: 32 bits clock: 33MHz -graphics product: EFI VGA physical id: 1 logical name: /dev/fb0 capabilities: fb configuration: depth=32 resolution=800,600 -input:0 product: AT Translated Set 2 keyboard physical id: 2 logical name: input0 logical name: /dev/input/event0 logical name: input0::capslock logical name: input0::numlock logical name: input0::scrolllock capabilities: i8042 -input:1 product: Power Button physical id: 3 logical name: input1 logical name: /dev/input/event1 capabilities: platform -input:2 product: PC Speaker physical id: 4 logical name: input11 logical name: /dev/input/event11 capabilities: isa -input:3 product: UNIW0001:00 093A:0274 Mouse physical id: 5 logical name: input12 logical name: /dev/input/event6 logical name: /dev/input/mouse0 capabilities: i2c -input:4 product: UNIW0001:00 093A:0274 Touchpad physical id: 6 logical name: input13 logical name: /dev/input/event7 logical name: /dev/input/mouse1 capabilities: i2c -input:5 product: Sleep Button physical id: 7 logical name: input2 logical name: /dev/input/event2 capabilities: platform -input:6 product: TUXEDO Keyboard physical id: 8 logical name: input25 logical name: /dev/input/event21 capabilities: platform -input:7 product: Lid Switch physical id: 9 logical name: input3 logical name: /dev/input/event3 capabilities: platform -input:8 product: Video Bus physical id: a logical name: input4 logical name: /dev/input/event4 capabilities: platform -input:9 product: Video Bus physical id: b logical name: input5 logical name: /dev/input/event5 capabilities: platform

On Mon, Mar 7, 2022 at 6:51 PM Kevin Van Lierde @.***> wrote:

@xevilstar https://github.com/xevilstar this unfortunately does not provide sufficient info. Your issue hints at tuxedo_keyboard not being correctly installed. If files are missing at /sys/devices/platform/tuxedo_keyboard/ it means tuxedo_keyboard is not properly installed, possibly because your laptop model is not supported. Did you try to reboot after installing tuxedo_keyboard? Rebooting has been reported to solve an issue previously.

To fully track the issue, the following info is needed:

  • your laptop model - is it compatible?
  • your OS (=Debian)
  • the version of tuxedo_keyboard that you tried to install
  • the version of tuxedo-backlight-control that you installed
  • how you ran tuxedo backlight control (backlight ui command? backlight CLi? desktop launcher?)

— Reply to this email directly, view it on GitHub https://github.com/webketje/tuxedo-backlight-control/issues/20#issuecomment-1060961240, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKTHVNKNSAE6SWZFSXIVPDU6Y623ANCNFSM5P5X3RJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

webketje commented 2 years ago

@xevilstar Cool vendor, pcspecialist.it. Ok so your laptop is definitely a Clevo-compatible model (same debug values as I)

I am using the cli from bash/root account

So you say that the CLI works? Why do you use the root account? I think last time I tried to upgrade the Linux kernel to latest stable (I'm on 5.4.0) it didn't work out-of-the-box either, I think tuxedo_keyboard binds itself to a specific kernel version and needs to be reinstalled

xevilstar commented 2 years ago

I have reinstalled it (it is now in my dkms configuration) but it still doesn't find the state file in the sys path all other files are created

xevilstar commented 2 years ago

I'd like to find out why that file is missing in my /sys tuxedo_keyboard path

webketje commented 2 years ago

Maybe you can just create it yourself as root and it will work after that? echo "0" > /sys/devices/platform/tuxedo_keyboard/state FYI, this is what ls -la /sys/devices/platform/tuxedo_keyboard yields on my laptop:

-rw-r--r--  1 root root 4096 Mar 10 10:46 brightness
-rw-r--r--  1 root root 4096 Mar 10 10:46 color_center
-rw-r--r--  1 root root 4096 Mar 10 10:46 color_extra
-rw-r--r--  1 root root 4096 Mar 10 10:46 color_left
-rw-r--r--  1 root root 4096 Mar 10 10:46 color_right
lrwxrwxrwx  1 root root    0 Mar 17 23:06 driver -> ../../../bus/platform/drivers/tuxedo_keyboard
-rw-r--r--  1 root root 4096 Mar 17 23:06 driver_override
-r--r--r--  1 root root 4096 Mar 17 23:06 extra
drwxr-xr-x  3 root root    0 Mar 17 23:06 input
-r--r--r--  1 root root 4096 Mar 17 23:06 modalias
-rw-r--r--  1 root root 4096 Mar 10 10:44 mode
drwxr-xr-x  2 root root    0 Mar 17 23:06 power
-rw-r--r--  1 root root 4096 Mar 11 17:13 state
lrwxrwxrwx  1 root root    0 Mar 17 23:06 subsystem -> ../../../bus/platform
-rw-r--r--  1 root root 4096 Mar 17 23:06 uevent
xevilstar commented 2 years ago

@.***:~# echo "0" > /sys/devices/platform/tuxedo_keyboard/state -bash: /sys/devices/platform/tuxedo_keyboard/state: Permission denied

On Thu, Mar 17, 2022 at 11:09 PM Kevin Van Lierde @.***> wrote:

Maybe you can just create it yourself as root and it will work after that? echo "0" > /sys/devices/platform/tuxedo_keyboard/state FYI, this is what ls -la /sys/devices/platform/tuxedo_keyboard yields on my laptop:

-rw-r--r-- 1 root root 4096 Mar 10 10:46 brightness -rw-r--r-- 1 root root 4096 Mar 10 10:46 color_center -rw-r--r-- 1 root root 4096 Mar 10 10:46 color_extra -rw-r--r-- 1 root root 4096 Mar 10 10:46 color_left -rw-r--r-- 1 root root 4096 Mar 10 10:46 color_right lrwxrwxrwx 1 root root 0 Mar 17 23:06 driver -> ../../../bus/platform/drivers/tuxedo_keyboard -rw-r--r-- 1 root root 4096 Mar 17 23:06 driver_override -r--r--r-- 1 root root 4096 Mar 17 23:06 extra drwxr-xr-x 3 root root 0 Mar 17 23:06 input -r--r--r-- 1 root root 4096 Mar 17 23:06 modalias -rw-r--r-- 1 root root 4096 Mar 10 10:44 mode drwxr-xr-x 2 root root 0 Mar 17 23:06 power -rw-r--r-- 1 root root 4096 Mar 11 17:13 state lrwxrwxrwx 1 root root 0 Mar 17 23:06 subsystem -> ../../../bus/platform -rw-r--r-- 1 root root 4096 Mar 17 23:06 uevent

— Reply to this email directly, view it on GitHub https://github.com/webketje/tuxedo-backlight-control/issues/20#issuecomment-1071611272, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKTHVIE4QPJARWWNWQB6ODVAOUSFANCNFSM5P5X3RJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

xevilstar commented 2 years ago

ls -la /sys/devices/platform/tuxedo_keyboard/
total 0 drwxr-xr-x 4 root root 0 Mar 18 08:29 . drwxr-xr-x 30 root root 0 Mar 18 08:29 .. lrwxrwxrwx 1 root root 0 Mar 18 08:29 driver -> ../../../bus/platform/drivers/tuxedo_keyboard -rw-r--r-- 1 root root 4096 Mar 18 10:13 driver_override drwxr-xr-x 3 root root 0 Mar 18 08:29 input -r--r--r-- 1 root root 4096 Mar 18 10:13 modalias drwxr-xr-x 2 root root 0 Mar 18 10:13 power lrwxrwxrwx 1 root root 0 Mar 18 08:29 subsystem -> ../../../bus/platform -rw-r--r-- 1 root root 4096 Mar 18 08:29 uevent

xevilstar commented 2 years ago

ls -la /sys/devices/platform/tuxedo_keyboard/ total 0 drwxr-xr-x 4 root root 0 Mar 18 08:29 . drwxr-xr-x 30 root root 0 Mar 18 08:29 .. lrwxrwxrwx 1 root root 0 Mar 18 08:29 driver -> ../../../bus/platform/drivers/tuxedo_keyboard -rw-r--r-- 1 root root 4096 Mar 18 10:13 driver_override drwxr-xr-x 3 root root 0 Mar 18 08:29 input -r--r--r-- 1 root root 4096 Mar 18 10:13 modalias drwxr-xr-x 2 root root 0 Mar 18 10:13 power lrwxrwxrwx 1 root root 0 Mar 18 08:29 subsystem -> ../../../bus/platform -rw-r--r-- 1 root root 4096 Mar 18 08:29 uevent

On Fri, Mar 18, 2022 at 10:12 AM Renato Gallo @.***> wrote:

@.***:~# echo "0" > /sys/devices/platform/tuxedo_keyboard/state -bash: /sys/devices/platform/tuxedo_keyboard/state: Permission denied

On Thu, Mar 17, 2022 at 11:09 PM Kevin Van Lierde < @.***> wrote:

Maybe you can just create it yourself as root and it will work after that? echo "0" > /sys/devices/platform/tuxedo_keyboard/state FYI, this is what ls -la /sys/devices/platform/tuxedo_keyboard yields on my laptop:

-rw-r--r-- 1 root root 4096 Mar 10 10:46 brightness -rw-r--r-- 1 root root 4096 Mar 10 10:46 color_center -rw-r--r-- 1 root root 4096 Mar 10 10:46 color_extra -rw-r--r-- 1 root root 4096 Mar 10 10:46 color_left -rw-r--r-- 1 root root 4096 Mar 10 10:46 color_right lrwxrwxrwx 1 root root 0 Mar 17 23:06 driver -> ../../../bus/platform/drivers/tuxedo_keyboard -rw-r--r-- 1 root root 4096 Mar 17 23:06 driver_override -r--r--r-- 1 root root 4096 Mar 17 23:06 extra drwxr-xr-x 3 root root 0 Mar 17 23:06 input -r--r--r-- 1 root root 4096 Mar 17 23:06 modalias -rw-r--r-- 1 root root 4096 Mar 10 10:44 mode drwxr-xr-x 2 root root 0 Mar 17 23:06 power -rw-r--r-- 1 root root 4096 Mar 11 17:13 state lrwxrwxrwx 1 root root 0 Mar 17 23:06 subsystem -> ../../../bus/platform -rw-r--r-- 1 root root 4096 Mar 17 23:06 uevent

— Reply to this email directly, view it on GitHub https://github.com/webketje/tuxedo-backlight-control/issues/20#issuecomment-1071611272, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKTHVIE4QPJARWWNWQB6ODVAOUSFANCNFSM5P5X3RJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

webketje commented 2 years ago

Ah I thought you said only the state file was missing, but all files keeping track of your keyboard state through SysFS are missing (brightness, 4x color_*, mode, state), so I can't help with that. But definitely tuxedo_keyboard was not installed properly.

xevilstar commented 2 years ago

yes I rebooted several times

On Mon, Mar 7, 2022 at 6:51 PM Kevin Van Lierde @.***> wrote:

@xevilstar https://github.com/xevilstar this unfortunately does not provide sufficient info. Your issue hints at tuxedo_keyboard not being correctly installed. If files are missing at /sys/devices/platform/tuxedo_keyboard/ it means tuxedo_keyboard is not properly installed, possibly because your laptop model is not supported. Did you try to reboot after installing tuxedo_keyboard? Rebooting has been reported to solve an issue previously.

To fully track the issue, the following info is needed:

  • your laptop model - is it compatible?
  • your OS (=Debian)
  • the version of tuxedo_keyboard that you tried to install
  • the version of tuxedo-backlight-control that you installed
  • how you ran tuxedo backlight control (backlight ui command? backlight CLi? desktop launcher?)

— Reply to this email directly, view it on GitHub https://github.com/webketje/tuxedo-backlight-control/issues/20#issuecomment-1060961240, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKTHVNKNSAE6SWZFSXIVPDU6Y623ANCNFSM5P5X3RJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

xevilstar commented 2 years ago

ls /sys/devices/platform/tuxedo_keyboard/ driver driver_override input modalias power subsystem uevent

xevilstar commented 2 years ago

not installed properly ? what am I missing here ?

Clone the Git Repo:

git clone https://github.com/tuxedocomputers/tuxedo-keyboard.git

cd tuxedo-keyboard

git checkout release

Build the Module:

make clean && make

The DKMS route:

Add as DKMS Module:

Install the Module:

make clean

sudo make dkmsinstall

Load the Module with modprobe:

modprobe tuxedo_keyboard

or

sudo modprobe tuxedo_keyboard

You might also want to activate tuxedo_io module the same way if you are using TCC.

xevilstar commented 2 years ago

uname -a Linux ghost 5.18.3-amd64 #1 SMP PREEMPT_DYNAMIC Fri Jun 10 11:11:28 CEST 2022 x86_64 GNU/Linux