Xfce Forum

Sub domains
 

You are not logged in.

#1 2016-02-19 22:37:26

enjey
Member
Registered: 2016-02-19
Posts: 4

Shortcuts do not work brightness, volume and touchpad lock

Fn only acts to turn off screen, I can not change the brightness, volume, and touchpad block.
See if you can help me. In gnome if it works but I prefer to use XFCE but this problem is uncomfortable.
Sorry for my English.
regards

Offline

#2 2016-02-20 13:26:07

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,000

Re: Shortcuts do not work brightness, volume and touchpad lock

Hello and welcome.

What is the make and model of your laptop?
Which distro and which version of Xfce are you using?
Are you using and kernel boot parameters? If so, which ones?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2016-02-20 23:11:59

enjey
Member
Registered: 2016-02-19
Posts: 4

Re: Shortcuts do not work brightness, volume and touchpad lock

Hello Toz!!!

Thanks for the welcome.

For my model is an ASUS A55A-SX465H

Distro version Debian GNU / Linux 8.3 (jessie)

XFCE version 4.10

Are you using and kernel boot parameters? If so, Which ones?
I do not understand this, I do not have much knowledge GNULinux and English, sorry.
You mean to Grub? (I tried adding splash and other functions I read on the internet and did not work)
I have put this
GRUB_DEFAULT = 0
GRUB_TIMEOUT = 5
GRUB_DISTRIBUTOR lsb_release `-i -s = 2> / dev / null || ECHO Debian`
GRUB_CMDLINE_LINUX_DEFAULT = "quiet"
GRUB_CMDLINE_LINUX = ""

Greetings and thank you very much!

Offline

#4 2016-02-20 23:39:13

enjey
Member
Registered: 2016-02-19
Posts: 4

Re: Shortcuts do not work brightness, volume and touchpad lock

Hello again.

I have observed for example that there is a keyboard shortcut with the following commands.

Command => exo-open --launch mailreader
Shortcut =>   XF86Mail

Command => exo-open --launch WebBrowser
Shortcut =>   XF86WWW

xfce4-display-settings --minimal
Shortcut =>   XF86Display

(the last turnoff the display)

Is not there this to touchpad lock, brightness and volume?

Last edited by enjey (2016-02-20 23:42:25)

Offline

#5 2016-02-21 03:32:52

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,000

Re: Shortcuts do not work brightness, volume and touchpad lock

1. Brightness: the Xfce power manager has a brightness control. Does the slider work? Do the following commands work:

xbacklight -inc 10
xbacklight -dec 10

The X codes are XF86MONBRIGHTNESSUP and XF86MONBRIGHTNESSDOWN.

2. Volume: do the following commands work:

amixer set Master 5%+
amixer set Master 5%-

The X codes are XF86AUDIOLOWERVOLUME and XF86AUDIORAISEVOLUME.

3. Touchpad lock involves finding the proper command to enable/disable it.

xinput

...will show you the device that you have, and depending on the device, commands like:

xinput set-prop 'SynPS/2 Synaptics TouchPad' 'Device Enabled' 0
xinput set-prop 'SynPS/2 Synaptics TouchPad' 'Device Enabled' 1

...will disable and re-enable the device.

These commands can be added in Settings Manager > Keyboards > Application shortcuts and assigned to your function keys. Hopefully your system will recognize your function keys, but if not, you'll need to find out why they are not being recognized.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#6 2016-02-22 02:07:21

enjey
Member
Registered: 2016-02-19
Posts: 4

Re: Shortcuts do not work brightness, volume and touchpad lock

Thanks!

Raise and lower the brightness and volume successful.

And now how is it mutes and unmute with the same button? I also need to do this with the touchpad, wrote me the commands work, but I need to manage with a single button.

I mean ...
Touchpad touchpad off and restore on it (fn + f9)
xinput set-prop 'ETPS / 2 Elantech Touchpad' 'Device Enabled' 0

Sound off and restore sound (fn + f10)
Set Master mute playback amixer
Set Master unmute playback amixer
(I tried to assign mute (fn + f10) then you can not simply unmute with volume up)

thanks for your time!

Offline

#7 2016-02-22 03:00:46

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,000

Re: Shortcuts do not work brightness, volume and touchpad lock

Try these script files:

enjey wrote:

I mean ...
Touchpad touchpad off and restore on it (fn + f9)
xinput set-prop 'ETPS / 2 Elantech Touchpad' 'Device Enabled' 0

#!/bin/bash

# check to see if touchpad is currently enabled
if [ $(xinput list-props 'ETPS / 2 Elantech Touchpad' | grep 'Device Enabled' | awk '{ print $4 }') -eq 1 ]; then
    # yes its enabled, so disable
    xinput set-prop 'ETPS / 2 Elantech Touchpad' 'Device Enabled' 0
else
    # otherwise enable
    xinput set-prop 'ETPS / 2 Elantech Touchpad' 'Device Enabled' 1
fi

exit 0

Sound off and restore sound (fn + f10)
Set Master mute playback amixer
Set Master unmute playback amixer
(I tried to assign mute (fn + f10) then you can not simply unmute with volume up)

#!/bin/bash

# check if sound is muted
if amixer get Master | grep -q off; then
    # if yes, then unmute
    amixer set Master unmute playback
else
    # otherwise mute
    amixer set Master mute playback
fi

exit 0

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Board footer

Powered by FluxBB