Author Topic: [ Solved ] Laptop brightness keys  (Read 1021 times)

Offline way12go

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 476
  • Existence is all about what matters & what doesn't
[ Solved ] Laptop brightness keys
« on: April 07, 2015, 07:04:28 am »
I've installed sparkylinux 4 RC on both desktop and laptop and the icons are awesome.

Previously I used  Mate and I could access laptop brightness keys etc also I was getting visual effects for the keys and now in LXDE the keys are no longer working. What is the app for it?
« Last Edit: May 19, 2015, 08:45:00 am by way12go »
Existence is all about what matters and what doesn't. - Sagar Gorijala.

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1462
    • SparkyLinux
Re: Laptop brightness keys
« Reply #1 on: April 07, 2015, 01:52:13 pm »
Install 'xbacklight' package.
Edit the file:
Code: [Select]
~HOME/.config/openbox/lxde-rc.xmlBefore :
Code: [Select]
</keyboard>paste the text:
Code: [Select]
<keybind key="XF86MonBrightnessDown">
      <action name="Execute">
        <command>xbacklight -20</command>
        <startupnotify>
          <enabled>yes</enabled>
          <name>Decrease screen brightness</name>
        </startupnotify>
      </action>
    </keybind>
  <keybind key="XF86MonBrightnessUp">
      <action name="Execute">
        <command>xbacklight +20</command>
        <startupnotify>
          <enabled>yes</enabled>
          <name>Increase screen brightness</name>
        </startupnotify>
      </action>
    </keybind>
Then re-login and use function keys or special + Up/Down keys to change brightness.
« Last Edit: April 07, 2015, 02:11:31 pm by pavroo »
Nothing is easy as it looks.

Offline way12go

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 476
  • Existence is all about what matters & what doesn't
Re: Laptop brightness keys
« Reply #2 on: April 07, 2015, 02:18:28 pm »
Thanks, it's working. But, in previous Mate installations I could see the on-screen display of key effects now I can use the keys but there is no on-screen display.

Anyway it's okay.

Thanks again.
Existence is all about what matters and what doesn't. - Sagar Gorijala.

Offline cynclida

  • Newbie
  • *
  • Posts: 16
Re: Laptop brightness keys
« Reply #3 on: April 29, 2015, 10:26:58 am »
On my laptop I got OSD working (for brightness and volume) applying the following steps:

general:
- installed xfce4-notifyd, stopped autostart of notification deamon unchecking it in Dsktop Session Settings
brightness:
- installed xfce4-power-manager, added it to autostart checking it in Desktop Session Settings
volume:
- installed volumeicon-alsa and created volumeicon.desktop in ~/.config/autostart/:
Code: [Select]
[Desktop Entry]
Name=Volumeicon
Exec=volumeicon
Terminal=false
Type=Application
Categories=Applications;GTK;
NoDisplay=true

After reboot, I had to check control for brightness keys in Power Management and for volume keys in Volumeicon. Now OSD works  :)
« Last Edit: April 29, 2015, 11:09:22 am by cynclida »