Hello,
On my laptop computer , the keys F11 and F12, adjusts the brightness of the screen. But on Debian-Stretch with trinity, these two keys do nothing.
Before I could do that with "Configure your Desktop" and "Configure tdepowersave" with a scale from 0 to 100%. But now, it's gone.
Any Idea to do that with Trinity or with F11 and F12 ?
Best regards,
André
On Thu July 11 2019 14:28:29 andre_debian@numericable.fr wrote:
On my laptop computer , the keys F11 and F12, adjusts the brightness of the screen. But on Debian-Stretch with trinity, these two keys do nothing.
I can't help you with F11 and F12 but if it's a 70% brightness you want you can put "xbacklight -set 70" in a file called ".xsessionrc" in your home directory.
--Mike
On Thursday 11 July 2019 14:35:54 Mike Bird wrote:
On Thu July 11 2019 14:28:29 andre_debian@numericable.fr wrote:
On my laptop computer , the keys F11 and F12, adjusts the brightness of the screen. But on Debian-Stretch with trinity, these two keys do nothing.
I can't help you with F11 and F12 but if it's a 70% brightness you want you can put "xbacklight -set 70" in a file called ".xsessionrc" in your home directory.
--Mike
If I read the original question aright, he wants to make the screen brightness adjustable: F11 for dimmer, F12 for brighter (probably).
Can't you use some kind of specialized keyboard mapping to make these keys do what you want?
It has been about ten years since I last tried something like this, so I fear getting drawn too deeply into this discussion, but ... anyway ... it could be that I will find this information useful again myself, for my own purposes.
You ought to be able to change one or two keys to get them to do this. A quick search of the forums (e.g., "keyboard mapping debian ?") returns lots of pages.
Bill
On 07/11/2019 04:35 PM, Mike Bird wrote:
On Thu July 11 2019 14:28:29 andre_debian@numericable.fr wrote:
On my laptop computer , the keys F11 and F12, adjusts the brightness of the screen. But on Debian-Stretch with trinity, these two keys do nothing.
I can't help you with F11 and F12 but if it's a 70% brightness you want you can put "xbacklight -set 70" in a file called ".xsessionrc" in your home directory.
You can also check for an interface through, e.g.
/sys/class/backlight/acpi_video0/
or e.g.
/sys/class/backlight/intel/
within each directory you should have a sysfs structure for 'brightness' and 'max_brightness'
For example, you can check the current and max brightness with:
cat /sys/class/backlight/acpi_video0/brightness
cat /sys/class/backlight/acpi_video0/max_brightness
To set, you must be root (or EUID 0 with sudo, etc..) and
echo 5 > /sys/class/backlight/acpi_video0/brightness
I just use a script that reads the last set value from /usr/local/share/brightness on startup (set in ~/.kde/Autostart) and use an alias to the script `bl` that then allows adjustment with `bl +` or `bl -` or `bl value`.
You can also end up in the circumstance where your F11/F12 are actually setting the values in:
/sys/class/backlight/acpi_video0/brightness
but your video driver (e.g. Nvidia, etc..) is using
/sys/class/backlight/nvidiabl/brightness
In that case you can use a similar script at startup to background a watch with inotifywait that watches .../acpi_video0/brightness and then sets .../nvidiabl/brightness whenever it changes.
Bottom line, few desktops actually have interfaces to manufacturer keyboard mappings for specific hardware hotkeys. (plasma -- hiss, seems to do better than others) Some distros used to provide specific packages, and KDE used to have for example Sony hotkeys package and a few others. But that is they type of package that must be maintained with every new crop of laptops. (e.g. Sony hotkeys doesn't mean a whole lot anymore...) So mapping your own key to the feature you use to control brightness is probably the only reliable way to make sure they work.
On Thursday 11 July 2019 11:40:33 pm David C. Rankin wrote:
On 07/11/2019 04:35 PM, Mike Bird wrote:
On Thu July 11 2019 14:28:29 andre_debian@numericable.fr wrote:
On my laptop computer , the keys F11 and F12, adjusts the brightness of the screen. But on Debian-Stretch with trinity, these two keys do nothing.
I can't help you with F11 and F12 but if it's a 70% brightness you want you can put "xbacklight -set 70" in a file called ".xsessionrc" in your home directory.
You can also check for an interface through, e.g.
/sys/class/backlight/acpi_video0/
or e.g.
/sys/class/backlight/intel/
within each directory you should have a sysfs structure for 'brightness' and 'max_brightness'
For example, you can check the current and max brightness with:
cat /sys/class/backlight/acpi_video0/brightness
cat /sys/class/backlight/acpi_video0/max_brightness
To set, you must be root (or EUID 0 with sudo, etc..) and
echo 5 > /sys/class/backlight/acpi_video0/brightness
I just use a script that reads the last set value from /usr/local/share/brightness on startup (set in ~/.kde/Autostart) and use an alias to the script `bl` that then allows adjustment with `bl +` or `bl -` or `bl value`.
You can also end up in the circumstance where your F11/F12 are actually setting the values in:
/sys/class/backlight/acpi_video0/brightness
but your video driver (e.g. Nvidia, etc..) is using
/sys/class/backlight/nvidiabl/brightness
In that case you can use a similar script at startup to background a watch with inotifywait that watches .../acpi_video0/brightness and then sets .../nvidiabl/brightness whenever it changes.
Bottom line, few desktops actually have interfaces to manufacturer keyboard mappings for specific hardware hotkeys. (plasma -- hiss, seems to do better than others) Some distros used to provide specific packages, and KDE used to have for example Sony hotkeys package and a few others. But that is they type of package that must be maintained with every new crop of laptops. (e.g. Sony hotkeys doesn't mean a whole lot anymore...) So mapping your own key to the feature you use to control brightness is probably the only reliable way to make sure they work.
I've used GUI tools that will show you key identifiers. Alas, I didn't take notes of what it was. It was related to:
xbindkeys xbindkeys-config xdotool
Found it! xev (from a command line)
See the thread "How to use mouse click as part of a keyboard shortcut?" (Jun/July 2018) for more info on how to map the keypress to an action.
Best, Michael
On Thursday 11 July 2019 23:35:54 Mike Bird wrote:
On Thu July 11 2019 14:28:29 andre_debian@numericable.fr wrote:
On my laptop computer , the keys F11 and F12, adjusts the brightness of the screen. But on Debian-Stretch with trinity, these two keys do nothing.
I can't help you with F11 and F12 but if it's a 70% brightness you want you can put "xbacklight -set 70" in a file called ".xsessionrc" in your home directory.
In my home directory, I haven't ".xsessionrc". (and not elsewhere).
F11 for dimmer, F12 for brighter, work with Windows 10.
Regards,
André
On Fri July 12 2019 14:45:21 andre_debian@numericable.fr wrote:
In my home directory, I haven't ".xsessionrc". (and not elsewhere).
It's an optional file which you can create if you wish. If present it needs to be readable by your user.
--Mike
On Thursday 11 July 2019 23:35:54 Mike Bird wrote:
On Thu July 11 2019 14:28:29 andre_debian@numericable.fr wrote:
On my laptop computer , the keys F11 and F12, adjusts the brightness of the screen. But on Debian-Stretch with trinity, these two keys do nothing.
I can't help you with F11 and F12 but if it's a 70% brightness you want you can put "xbacklight -set 70" in a file called ".xsessionrc" in your home directory.
Hello,
$ xbacklight -set 70 "No outputs have backlight property"
(xbacklight is installed) I'am on Debian Stretch.
The others solutions proposed don't work.
Regards,
André
Anno domini 2019 Mon, 15 Jul 14:59:21 +0200 andre_debian@numericable.fr scripsit:
On Thursday 11 July 2019 23:35:54 Mike Bird wrote:
On Thu July 11 2019 14:28:29 andre_debian@numericable.fr wrote:
On my laptop computer , the keys F11 and F12, adjusts the brightness of the screen. But on Debian-Stretch with trinity, these two keys do nothing.
I can't help you with F11 and F12 but if it's a 70% brightness you want you can put "xbacklight -set 70" in a file called ".xsessionrc" in your home directory.
Hello,
$ xbacklight -set 70 "No outputs have backlight property"
(xbacklight is installed) I'am on Debian Stretch.
The others solutions proposed don't work.
What hardware are you on? Thinkpads need thinkpad_acpi for this to work ...
Regards,
André
To unsubscribe, e-mail: trinity-users-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-users-help@lists.pearsoncomputing.net Read list messages on the web archive: http://trinity-users.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
On Monday 15 July 2019 15:09:21 Dr. Nikolaus Klepp wrote:
Anno domini 2019 Mon, 15 Jul 14:59:21 +0200 andre_debian@numericable.fr scripsit:
On Thursday 11 July 2019 23:35:54 Mike Bird wrote:
On Thu July 11 2019 14:28:29 andre_debian@numericable.fr wrote:
On my laptop computer , the keys F11 and F12, adjusts the brightness of the screen. But on Debian-Stretch with trinity, these two keys do nothing.
I can't help you with F11 and F12 but if it's a 70% brightness you want you can put "xbacklight -set 70" in a file called ".xsessionrc" in your home directory.
$ xbacklight -set 70 "No outputs have backlight property" (xbacklight is installed) I'am on Debian Stretch. The others solutions proposed don't work.
What hardware are you on? Thinkpads need thinkpad_acpi for this to work ...
My computer laptop is Lenovo, video card Intel 520.
Only the Function keys F1 and F2 work for the sound, increase , decrease.
Package "thinkpad_acpi" doesn't exist on Debian.
Anno domini 2019 Mon, 15 Jul 16:37:34 +0200 andre_debian@numericable.fr scripsit:
On Monday 15 July 2019 15:09:21 Dr. Nikolaus Klepp wrote:
Anno domini 2019 Mon, 15 Jul 14:59:21 +0200 andre_debian@numericable.fr scripsit:
On Thursday 11 July 2019 23:35:54 Mike Bird wrote:
On Thu July 11 2019 14:28:29 andre_debian@numericable.fr wrote:
On my laptop computer , the keys F11 and F12, adjusts the brightness of the screen. But on Debian-Stretch with trinity, these two keys do nothing.
I can't help you with F11 and F12 but if it's a 70% brightness you want you can put "xbacklight -set 70" in a file called ".xsessionrc" in your home directory.
$ xbacklight -set 70 "No outputs have backlight property" (xbacklight is installed) I'am on Debian Stretch. The others solutions proposed don't work.
What hardware are you on? Thinkpads need thinkpad_acpi for this to work ...
My computer laptop is Lenovo, video card Intel 520.
Only the Function keys F1 and F2 work for the sound, increase , decrease.
Package "thinkpad_acpi" doesn't exist on Debian.
It's a kernel module $ lsmod|grep thinkpad_acpi thinkpad_acpi 106496 0 nvram 16384 1 thinkpad_acpi snd 98304 12 snd_hda_codec_generic,snd_hwdep,snd_hda_intel,snd_hda_codec_analog,snd_hda_codec,snd_timer,thinkpad_acpi,snd_pcm rfkill 28672 4 bluetooth,thinkpad_acpi,cfg80211 battery 20480 1 thinkpad_acpi video 45056 2 thinkpad_acpi,i915
To unsubscribe, e-mail: trinity-users-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-users-help@lists.pearsoncomputing.net Read list messages on the web archive: http://trinity-users.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
On Monday 15 July 2019 17:25:02 Dr. Nikolaus Klepp wrote:
andre_debian@numericable.fr scripsit:
Package "thinkpad_acpi" doesn't exist on Debian.
It's a kernel module $ lsmod|grep thinkpad_acpi thinkpad_acpi 106496 0 nvram 16384 1 thinkpad_acpi snd 98304 12
snd_hda_codec_generic,snd_hwdep,snd_hda_intel,snd_hda_codec_analog,snd_hda_codec,snd_timer,thinkpad_acpi,snd_pcm
rfkill 28672 4 bluetooth,thinkpad_acpi,cfg80211 battery 20480 1 thinkpad_acpi video 45056 2 thinkpad_acpi,i915
lsmod | grep thinkpad_acpi Unfortunately, no thinkpad_acpi module in the kernel
Anno domini 2019 Mon, 15 Jul 18:35:01 +0200 andre_debian@numericable.fr scripsit:
On Monday 15 July 2019 17:25:02 Dr. Nikolaus Klepp wrote:
andre_debian@numericable.fr scripsit:
Package "thinkpad_acpi" doesn't exist on Debian.
It's a kernel module $ lsmod|grep thinkpad_acpi thinkpad_acpi 106496 0 nvram 16384 1 thinkpad_acpi snd 98304 12
snd_hda_codec_generic,snd_hwdep,snd_hda_intel,snd_hda_codec_analog,snd_hda_codec,snd_timer,thinkpad_acpi,snd_pcm
rfkill 28672 4 bluetooth,thinkpad_acpi,cfg80211 battery 20480 1 thinkpad_acpi video 45056 2 thinkpad_acpi,i915
lsmod | grep thinkpad_acpi Unfortunately, no thinkpad_acpi module in the kernel
# modprobe thinkpad_acpi
To unsubscribe, e-mail: trinity-users-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-users-help@lists.pearsoncomputing.net Read list messages on the web archive: http://trinity-users.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
On 07/15/2019 09:37 AM, andre_debian@numericable.fr wrote:
My computer laptop is Lenovo, video card Intel 520.
Only the Function keys F1 and F2 work for the sound, increase , decrease.
Package "thinkpad_acpi" doesn't exist on Debian.
What is the output of :
ls -al /sys/class/backlight/ ## note: / at end IS required
and if 'intel' or 'acpi_video0' is shwown, then what is the output of the one present, e.g.
ls -al /sys/class/backlight/intel/
or
ls -al /sys/class/backlight/acpi_video0/
(in other words -- where is your backlight control coming from)