SliTaz SliTaz Forum

You are not logged in.

#1 2013-03-29 14:33:22

brahman2006
Member
Registered: 2013-03-29
Posts: 3

Fn key

Can anyone help me with Fn key on my laptop ? It does not work when I press Fn+App arrow or down arrow or any F key. Which packet I have to install ?

Offline

#2 2013-03-29 15:33:08

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Fn key

You can manage your Fn keys in different ways. How I did it:

Go to your home folder using PCManFM file manager, press Ctrl+H to show hidden files and folders.

Enter to folder .config (yes, name begins with dot), then enter to folder openbox, and open file rc.xml in text editor.

Search for line:

[c]</keyboard>[/c]
Copy next code and paste it above the line you found:

[c]<!-- my additional hot keys: START -->
    <keybind key="XF86AudioMute">
      <action name="Execute">
        <command>amixer set Master toggle</command>
      </action>
    </keybind>
    <keybind key="XF86AudioRaiseVolume">
      <action name="Execute">
        <command>amixer set Master 5%+</command>
      </action>
    </keybind>
    <keybind key="XF86AudioLowerVolume">
      <action name="Execute">
        <command>amixer set Master 5%-</command>
      </action>
    </keybind>
    <keybind key="XF86AudioPlay">
      <action name="Execute">
        <command>alsaplayer --pause</command>
      </action>
    </keybind>
    <keybind key="XF86AudioNext">
      <action name="Execute">
        <command>alsaplayer --next</command>
      </action>
    </keybind>
    <keybind key="XF86AudioPrev">
      <action name="Execute">
        <command>alsaplayer --prev</command>
      </action>
    </keybind>
    <keybind key="XF86Sleep">
      <action name="Execute">
        <command>sudo pm-suspend</command>
      </action>
    </keybind>
    <keybind key="A-Print">
      <action name="Execute">
        <command>mtpaint -s</command>
      </action>
    </keybind>
    <keybind key="XF86PowerOff">
      <action name="Execute">
        <command>poweroff</command>
      </action>
    </keybind>
    <!-- my additional hot keys: END -->[/c]
Save the file and close text editor and PCManFM. Minimize all your opened applications, press right mouse button on free space on the desktop, select menu 'Openbox' and press 'Reconfigure'. Done.

Now you can: mute, unmute, rise and lower volume, control alsaplayer, make screenshot (Alt+PrtScr), power off using Power button (though, Sleep button not work, but let the code be here).

Note, that I have next button layout:

Sleep: Fn+F4

Mute/unmute: Fn+F8

VolumeUp: Fn+Up

VolumeDown: Fn+Down

You can have your different layout, and everything should work as expected, because code above use names of keys, not layout.

Offline

#3 2013-03-29 16:40:40

brahman2006
Member
Registered: 2013-03-29
Posts: 3

Re: Fn key

Thanks !

What about screen brightness control with Fn+Up Arrow and Fn+Down Arrow ?

Offline

#4 2013-03-29 17:23:22

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Fn key

On my netbook it is done out of the box. Both brightness control and touchpad on/off. I think, these keys are hardware driven.

I don't know properly, maybe xset helps you. Install package xorg-xset, type in terminal:

[c]xset --help[/c]

Offline

#5 2013-03-29 19:47:50

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Fn key

Reading xset man page I see that it can't help you to control screen brightness. I found good article on the ArchWiki: https://wiki.archlinux.org/index.php/Backlight

Read and try. By the way, xbacklight you can find in the xorg-xbacklight package, redshift in the redshift package (need python), setpci in pciutils. Xcalib, relight, calise are absent.

Good luck! Post here results of your work.

Offline

#6 2013-03-30 06:34:54

brahman2006
Member
Registered: 2013-03-29
Posts: 3

Re: Fn key

Thanks.

But xbacklight does not work.

tux@slitaz:~$ xbacklight

No outputs have backlight property

Offline

#7 2013-03-30 11:15:37

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Fn key

For me too. I have empty folder [c]/sys/class/backlight[/c], what about you?

Even if I connect to the netbook an external monitor (TV, located in the kitchen), turn it on by LXrandr, then still nothing change.

Offline

#8 2013-04-24 00:31:51

csantos
Member
Registered: 2013-04-21
Posts: 5

Re: Fn key

Man, you was THE GUY!!!!

Thank you for this GREAT tip!

big_smile

Regards from Brazil,

Cristiano

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.029 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]