WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline h2sammo

  • Jr. Member
  • **
  • Posts: 80
    • Best podcast on LI-ion
Control screen brightness on laptop
« 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?
Thank you for your help!

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: Control screen brightness on laptop
« Reply #1 on: December 29, 2018, 10:10:54 PM »
Hi h2sammo
Maybe  laptop-mode-tools.tcz  has something that can help with that.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Control screen brightness on laptop
« Reply #2 on: December 30, 2018, 12:41:48 AM »
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:
Code: [Select]
$ cat /sys/class/backlight/intel_backlight/max_brightness
937

$ echo 500 | sudo tee /sys/class/backlight/intel_backlight/brightness
« Last Edit: December 30, 2018, 02:28:56 AM by Juanito »

Offline h2sammo

  • Jr. Member
  • **
  • Posts: 80
    • Best podcast on LI-ion
Re: Control screen brightness on laptop
« Reply #3 on: January 03, 2019, 09:10:49 AM »
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
Thank you for your help!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Control screen brightness on laptop
« Reply #4 on: January 03, 2019, 09:13:33 AM »
exit to the console prompt and:
Code: [Select]
$ tce-load -wil graphics-KERNEL Xorg-7.7 xf86-video-intel
$ startx

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: Control screen brightness on laptop
« Reply #5 on: January 03, 2019, 09:24:15 AM »
Hi h2sammo
Quote
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.

Offline h2sammo

  • Jr. Member
  • **
  • Posts: 80
    • Best podcast on LI-ion
Re: Control screen brightness on laptop
« Reply #6 on: January 05, 2019, 05:16:56 AM »
i added laptop-tools and xf-86-video-intel to boot. now i see a module assigned to VGA controller:

Code: [Select]
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.
Thank you for your help!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Control screen brightness on laptop
« Reply #7 on: January 05, 2019, 05:38:57 AM »
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
« Last Edit: January 05, 2019, 06:22:23 AM by Juanito »

Offline h2sammo

  • Jr. Member
  • **
  • Posts: 80
    • Best podcast on LI-ion
Re: Control screen brightness on laptop
« Reply #8 on: January 05, 2019, 09:32:36 AM »
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.

Code: [Select]
tc@box:~$ cat /sys/class/backlight/intel_backlight/max_brightness
937
tc@box:~$ echo 500 | sudo tee /sys/class/backlight/intel_backlight/brightness
500
Thank you for your help!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Control screen brightness on laptop
« Reply #9 on: January 05, 2019, 10:19:38 AM »
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?

Offline h2sammo

  • Jr. Member
  • **
  • Posts: 80
    • Best podcast on LI-ion
Re: Control screen brightness on laptop
« Reply #10 on: January 05, 2019, 10:24:02 PM »
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.
Thank you for your help!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Control screen brightness on laptop
« Reply #11 on: January 05, 2019, 11:52:21 PM »
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.
« Last Edit: January 06, 2019, 12:50:14 AM by Juanito »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Control screen brightness on laptop
« Reply #12 on: January 06, 2019, 02:51:17 AM »
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:
Code: [Select]
$ grep -e "Using input driver 'libinput'" /var/log/Xorg.0.log
Once found, you can find changeable properties with, for example:
Code: [Select]
$ xinput list-props "AlpsPS/2 ALPS GlidePoint"
..and change properties in real time with, for example:
Code: [Select]
$ xinput disable "AlpsPS/2 ALPS GlidePoint"
..and modify properties permanently in /usr/local/share/X11/xorg.conf.d/40-libinput.conf
« Last Edit: January 06, 2019, 03:16:17 AM by Juanito »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Control screen brightness on laptop
« Reply #13 on: January 06, 2019, 04:04:17 AM »
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.
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 #14 on: January 06, 2019, 08:53:13 PM »
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!
Thank you for your help!