Score:0

How to enable control keyboard backlight in xmonad?

ma flag

I'm using xmonad -tiling window manager- and lux to control backlight but keyboard backlight via fn doesn't work. Does anyone know a solution?

Thanks for help.

Score:1
ro flag

One solution is to run xmonad on top of a desktop environment such as Mate or Gnome-Flashback. This makes things much peaceful since the DE takes care of managing systrays / functions keys / disk mounts / authentication and other small things that might take a long time figuring out on a pure xmonad setup

ma flag
This is a nice solution,but i want a pure solution without any additional libraries .
Score:0
ma flag

I found a solution to fix Fn for backlight & volume:

  • In ~.xmonad/xmonad.hs, add these lines at the top of the file:

    import Graphics.X11.ExtraTypes.XF86 
    import XMonad.Hooks.DynamicLog 
    import XMonad.Util.EZConfig(additionalKeys)
    

    and add these lines below --key bindings

        , ((0                   , xF86XK_AudioLowerVolume),  spawn "pactl set-sink-volume 0 -1.5%")
        , ((0                   , xF86XK_AudioRaiseVolume),  spawn "pactl set-sink-volume 0 +1.5%")
        , ((0                   , xF86XK_AudioMute),         spawn "pactl set-sink-mute 0 toggle")
     -- , ((0                   , xK_Print),   spawn "shutter")
        , ((0                   , xF86XK_MonBrightnessUp), spawn "lux -a 2%")
        , ((0                   , xF86XK_MonBrightnessDown), spawn "lux -s 2%")
    

Now Fn works fine for volume and backlight in my Samsung Note Book 9.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.