WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Control screen brightness on laptop  (Read 8758 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Control screen brightness on laptop
« Reply #15 on: January 07, 2019, 12:46:07 AM »
From the log it looks like you have a synaptics touchpad, but also that Xorg thinks your touchscreen is a synaptics touchpad.

There are several search hits for the device "auo", which might indicate you have an "atmel maxtouch" screen, but to progress much further we would need confirmation of exactly what hardware you have.

Maybe loading the libinput extension and using the command "sudo libinput list-devices" might help clarify things?

Note also that there's an atmel_mxt_ts driver in the input-tablet-touchscreen-KERNEL extension.
« Last Edit: January 07, 2019, 05:32:39 AM by Juanito »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Control screen brightness on laptop
« Reply #16 on: January 07, 2019, 05:38:18 AM »
libinput updated and xf86-input-libinput added to tc-9.x x86 repo

Offline h2sammo

  • Jr. Member
  • **
  • Posts: 80
    • Best podcast on LI-ion
Re: Control screen brightness on laptop
« Reply #17 on: January 09, 2019, 01:28:15 AM »
Code: [Select]
tc@box:~$ sudo libinput list-devices
Device:           Power Button
Kernel:           /dev/input/event2
Group:            1
Seat:             seat0, default
Capabilities:     keyboard
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Sleep Button
Kernel:           /dev/input/event0
Group:            2
Seat:             seat0, default
Capabilities:     keyboard
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           USB Optical Mouse
Kernel:           /dev/input/event6
Group:            3
Seat:             seat0, default
Capabilities:     keyboard pointer
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   button
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   flat *adaptive
Rotation:         n/a

Device:           AT Translated Set 2 keyboard
Kernel:           /dev/input/event3
Group:            4
Seat:             seat0, default
Capabilities:     keyboard
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           SynPS/2 Synaptics TouchPad
Kernel:           /dev/input/event7
Group:            5
Seat:             seat0, default
Size:             69x50mm
Capabilities:     pointer gesture
Tap-to-click:     disabled
Tap-and-drag:     enabled
Tap drag lock:    disabled
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *two-finger edge
Click methods:    *button-areas clickfinger
Disable-w-typing: enabled
Accel profiles:   none
Rotation:         n/a

Device:           HP WMI hotkeys
Kernel:           /dev/input/event5
Group:            6
Seat:             seat0, default
Capabilities:     keyboard
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Code: [Select]
tc@box:~$ cat /proc/bus/input/devices |grep -i name
N: Name="Sleep Button"
N: Name="Lid Switch"
N: Name="Power Button"
N: Name="AT Translated Set 2 keyboard"
N: Name="PC Speaker"
N: Name="HP WMI hotkeys"
N: Name="USB Optical Mouse "
N: Name="SynPS/2 Synaptics TouchPad"
N: Name="ST LIS3LV02DL Accelerometer"

Code: [Select]
tc@box:~$ dmesg |grep input
input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input0
input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input1
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input3
input: PC Speaker as /devices/platform/pcspkr/input/input11
input: HP WMI hotkeys as /devices/virtual/input/input12
input: USB Optical Mouse  as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:1BCF:0053.0001/input/input13
hid-generic 0003:1BCF:0053.0001: input,hidraw0: USB HID v1.10 Keyboard [USB Optical Mouse ] on usb-0000:00:14.0-1/input0
psmouse serio3: synaptics: Your touchpad (PNP: SYN3064 SYN0100 SYN0002 PNP0f13) says it can support a different bus. If i2c-hid and hid-rmi are not used, you might want to try setting psmouse.synaptics_intertouch to 1 and report this to linux-input@vger.kernel.org.
input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio3/input/input10
input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input15
« Last Edit: January 09, 2019, 01:31:16 AM by h2sammo »
Thank you for your help!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Control screen brightness on laptop
« Reply #18 on: January 09, 2019, 01:36:24 AM »
OK, that confirms you have a synaptics touchpad, but the touchscreen does not appear.

Could you exit X to the console prompt, load the input-tablet-touchscreen-KERNEL extension, startx and check again?
« Last Edit: January 09, 2019, 01:43:48 AM by Juanito »

Offline h2sammo

  • Jr. Member
  • **
  • Posts: 80
    • Best podcast on LI-ion
Re: Control screen brightness on laptop
« Reply #19 on: January 09, 2019, 01:46:23 AM »
sorry, i did not explain. The touchscreen does not appear because i am on my work laptop which is also an HP but does not have touchscreen. both laptops share the issue with not recognizing the function keys.
Thank you for your help!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Control screen brightness on laptop
« Reply #20 on: January 09, 2019, 02:11:11 AM »
OK, maybe you could try the suggestion for the touchscreen when you get back to your home laptop.

By "function keys" I assume you mean the keys that increase/decrease brightness, volume, etc?

I have a dell laptop that has drivers for the function keys, I would assume that your laptops have an hp equivalent:
Code: [Select]
$ lsmod | grep -i dell
dell_wmi               12288  0
sparse_keymap          12288  1 dell_wmi
dell_smbios            12288  1 dell_wmi
dcdbas                 12288  1 dell_smbios
dell_wmi_descriptor    12288  2 dell_wmi,dell_smbios
video                  32768  2 i915,dell_wmi
wmi                    16384  4 dell_wmi,dell_smbios,wmi_bmof,dell_wmi_descriptor
dell_rbtn              12288  0

..where dell_wmi is the driver for the function keys:
Code: [Select]
$ modinfo dell_wmi | grep description
description:    Dell laptop WMI hotkeys driver

In linux you still need to bind the hotkeys to the desired action - google will help with this.

Now that it is confirmed you have synaptics touchpads, you can use an xorg code snippet to configure them to your taste - again google can help with this.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Control screen brightness on laptop
« Reply #21 on: January 11, 2019, 03:37:49 AM »
btw, I checked with CorePure64 9.x and gnome-session - the laptop hot keys work without any configuration and the touchpad is configurable from the control-centre.

I guess it depends on how much bloat you want to throw at it...

Offline h2sammo

  • Jr. Member
  • **
  • Posts: 80
    • Best podcast on LI-ion
Re: Control screen brightness on laptop
« Reply #22 on: January 15, 2019, 08:15:15 PM »
i will check tonight on the home computer.

i think there should be similar (but smaller) tools to whatever makes it possible in gnome-session available in the default install. I think most users would benefit since many people try out tinycore on laptops.
Thank you for your help!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Control screen brightness on laptop
« Reply #23 on: January 16, 2019, 06:11:27 AM »
xbindkeys added to the repos.

On my laptop:
Code: [Select]
$ tce-load -i graphics-KERNEL Xorg-7.7 xf86-video-intel xbindkeys
$ startx

Creat the keybindings required:
Code: [Select]
$ cat ~/.xbindkeysrc

# Increase backlight
"xbacklight -inc 10"
   XF86MonBrightnessUp
# Decrease backlight
"xbacklight -dec 10"
   XF86MonBrightnessDown

Read the config created:
Code: [Select]
$ xbindkeys --poll-rc
..and test.

Once tested, create ~/.X.d/xbindkeys (containing "xbindkeys") and backup.

Offline h2sammo

  • Jr. Member
  • **
  • Posts: 80
    • Best podcast on LI-ion
Re: Control screen brightness on laptop
« Reply #24 on: January 21, 2019, 08:50:50 PM »
thank you for that!
i am able to modify .xbindkeysrc and my changes take effect successfully. however, functions keys f1 - f9 are dead. i can map other keys but those are function keys are not being picked up at all. any ideas?
Thank you for your help!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Control screen brightness on laptop
« Reply #25 on: January 22, 2019, 01:06:04 AM »
If you run the following command:
Code: [Select]
$ xev -event keyboard
..and press the function keys, do you get anything?

For example, pressing F1:
Code: [Select]
KeyPress event, serial 28, synthetic NO, window 0x1600001,
    root 0x311, subw 0x0, time 830988, (-7,-1), root:(1179,585),
    state 0x0, keycode 67 (keysym 0xffbe, F1), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

Offline h2sammo

  • Jr. Member
  • **
  • Posts: 80
    • Best podcast on LI-ion
Re: Control screen brightness on laptop
« Reply #26 on: January 22, 2019, 08:57:09 PM »
interestingly, some function keys work, some dont. the brightness control function keys dont work. actually keys f1 - f4 dont work, but the rest do work. even the numlock and wifi control keys perform their task which i havent noticed previously.

nothing come up in the terminal when i press the f1 - f4 keys. The rest of the keys output similar message to what you pasted.
Thank you for your help!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Control screen brightness on laptop
« Reply #27 on: January 23, 2019, 12:57:38 AM »
Did you check that the hp hotkeys kernel module is laoded with "lsmod"?

You could try the boot codes acpi_osi= (i.e. blank) or acpi_osi=Windows

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Control screen brightness on laptop
« Reply #28 on: January 23, 2019, 03:39:23 AM »
Perhaps they double as magic/fn keys? One of your laptop modules controls whether the default is fn on or fn off.
The only barriers that can stop you are the ones you create yourself.

Offline h2sammo

  • Jr. Member
  • **
  • Posts: 80
    • Best podcast on LI-ion
Re: Control screen brightness on laptop
« Reply #29 on: January 26, 2019, 05:46:58 AM »
i havent been able to figure out why but upon installing Core10, and redoing steps suggested in this thread, buttons work on my home HP laptop.
Thank you for your help!