Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: h2sammo on December 29, 2018, 10:06:52 PM
-
I tried two different HP laptops. No built-in control over screen brightness. How do i enable?
-
Hi h2sammo
Maybe laptop-mode-tools.tcz has something that can help with that.
-
If you have intel graphics hardware you could try Xorg-7.7/xf86-video-intel, which provides xf86-video-intel-backlight-helper.
If you only need to set the screen to maximum brightness, loading graphics-KERNEL might help.
Edit: with xf86-video-intel loaded, you can also adjust things manually: $ cat /sys/class/backlight/intel_backlight/max_brightness
937
$ echo 500 | sudo tee /sys/class/backlight/intel_backlight/brightness
-
i have VA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
currently no assigned driver.
i installed xf-86-video-intel on demand but it didnt load the module. how do i enable this? currently there is nothing under /sys/class/backlight
also installed laptop-mode-tools on demand and loaded it but nothing...
please help, thank you
-
exit to the console prompt and:
$ tce-load -wil graphics-KERNEL Xorg-7.7 xf86-video-intel
$ startx
-
Hi h2sammo
I installed xf-86-video-intel on demand but it didnt load the module. how do i enable this?
Move it from OnDemand to OnBoot.
-
i added laptop-tools and xf-86-video-intel to boot. now i see a module assigned to VGA controller:
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
Subsystem: Hewlett-Packard Company Device 227e
Kernel driver in use: i915
however, i still have no control over brightness function keys, nor do i have full access over the keyboard as the sound function keys also dont work, scrolling from the touchpad doesnt work, etc.
-
Did you load graphics-KERNEL and Xorg-7.7 as well as xf86-video-intel?
Edit: I have exactly the same graphics hardware and it works for me
-
ok i added graphics-KERNEL and Xorg-7.7 to onboot as well and now i can modify screen brightness from command line as i was advised above. however, keyboard function keys still dont work. the touchpad and touchscreen are still wack. i cannot scroll with two fingers, i do not have "right click" touchpad functions, etc.
tc@box:~$ cat /sys/class/backlight/intel_backlight/max_brightness
937
tc@box:~$ echo 500 | sudo tee /sys/class/backlight/intel_backlight/brightness
500
-
You could try the xf86-input-synaptics extension for your touchpad - it might need an xorg config snippet to configure it to your taste.
What make/model are the touchpad and touchscreen?
-
i added xf86-input-synaptics to onboot. i do not notice any difference.
i basically switch between two HP laptops between work and home. The one at home is a 15.6 in pavilion, 15-p143cl, the one at work is a pro model with GeForce video card i do not know the model now. Neither model has the touchpad or keyboard being recognized (function keys do not work in either case). no control over brithness, volume, etc from function key. also the touchscreen recognizes my finger but the response is erratic with menu options appearing in locations different to my finger touch, etc.
-
For both the touchpad and touchscreen, the make/model from lspci/lsusb/Xorg.0.log/libinput are needed for further troubleshooting:
https://wiki.archlinux.org/index.php/touchscreen
https://wiki.archlinux.org/index.php/Touchpad_Synaptics
https://wiki.archlinux.org/index.php/Libinput
Google suggests the bootcode "acpi_osi=" for the function keys.
-
One further thing you could try, but only in CorePure64, is to edit Xorg-7.7.tcz.dep:
xf86-input-evdev.tcz -> xf86-input-libinput.tcz
Then use the apps gui or tce-load to download xf86-input-libinput and reboot.
You can then use this to find your touchpad and touchscreen: $ grep -e "Using input driver 'libinput'" /var/log/Xorg.0.log
Once found, you can find changeable properties with, for example: $ xinput list-props "AlpsPS/2 ALPS GlidePoint"
..and change properties in real time with, for example: $ xinput disable "AlpsPS/2 ALPS GlidePoint"
..and modify properties permanently in /usr/local/share/X11/xorg.conf.d/40-libinput.conf
-
In case it's not clear, you can't expect the function keys and touchpad to automatically work 100% like in Windows. You will need to configure both, and in different ways depending on the manufacturers.
-
i appreciate the help. i think tinycore is a great distro and i think we can add more value to it. you guys are the experts. as a user, i run fatdog and tinycore from the same USB stick and I am having the problems i mentioned with tinycore. I appreciate the time you are putting in this project for our consumption.
i attached the Xorg log. i think some GUI tool for doing all the interface selection would be helpful. I have tinkered with Xorg file configs in the past but i am not as versatile with it as i would like.
cheers!
-
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.
-
libinput updated and xf86-input-libinput added to tc-9.x x86 repo
-
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
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"
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
-
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?
-
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.
-
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: $ 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: $ 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.
-
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...
-
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.
-
xbindkeys added to the repos.
On my laptop: $ tce-load -i graphics-KERNEL Xorg-7.7 xf86-video-intel xbindkeys
$ startx
Creat the keybindings required: $ cat ~/.xbindkeysrc
# Increase backlight
"xbacklight -inc 10"
XF86MonBrightnessUp
# Decrease backlight
"xbacklight -dec 10"
XF86MonBrightnessDown
Read the config created: $ xbindkeys --poll-rc
..and test.
Once tested, create ~/.X.d/xbindkeys (containing "xbindkeys") and backup.
-
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?
-
If you run the following command:
$ xev -event keyboard
..and press the function keys, do you get anything?
For example, pressing F1: 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
-
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.
-
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
-
Perhaps they double as magic/fn keys? One of your laptop modules controls whether the default is fn on or fn off.
-
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.