missing keyboard shortcuts

Bug #1165266 reported by pqwoerituytrueiwoq
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xubuntu-default-settings (Ubuntu)
Fix Released
Medium
Sean Davis

Bug Description

Several of my function keys do not work out of the box
Xubuntu 13.04 Beta 2 64bit (Note: I forgot I can edit this [see next comment])

the commands should be added to
/etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml

XF86Sleep does not do anything it should make the system
this command will put the system into suspend but it only seems to like the terminal
dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend

Sys_Req is the key name that occurs when i press Alt + prt sc
the command is xfce4-screenshooter -w
<property name="Sys_Req" type="string" value="xfce4-screenshooter -w"/>

XF86Calculator is the key name that should run
gnome-calculator
<property name="XF86Calculator" type="string" value="gnome-calculator"/>

XF86WebCam is the key that is supposed to do something with the webcam
this key should prompt to install some recommended webcam application and open it if it is installed

XF86TouchpadToggle is the key name related to enabling/disabling the touchpad
i have no idea what command would do this

I have some multimedia keys XF86AudioPlay, XF86AudioPrev, XF86AudioNext, and XF86AudioStop
they should run these commands (in same order as above)
gmusicbrowser -cmd PlayPause
gmusicbrowser -cmd PrevSong
gmusicbrowser -cmd NextSong
gmusicbrowser -cmd Stop

i have a couple other special keys that i am not sure what they are for, i don't think these are standard are are likely not worth implementing

XF86Launch1 according to the manual it does this:
Toggles “Splendid Video Intelligent Technology” function ON and OFF. This allows switching between different display color enhancement modes in order to improve contrast, brightness, skin tone, and color saturation for red, green, and blue independently. You can see the current mode through the onscreen display (OSD).

XF86Launch6 according to the manual it does this:
This key toggles power savings between various power saving modes. The power saving modes control many aspects of the Notebook PC to maximize performance versus battery time. Applying or removing the power adapter will automatically switch the system between AC mode and battery mode. You can see the current mode through the on-screen display (OSD).

Tags: patch

Related branches

Revision history for this message
pqwoerituytrueiwoq (pqwoerituytrueiwoq) wrote :

Forgot to mention i am using Xubuntu 13.04 Beta 2 64bit

description: updated
description: updated
Revision history for this message
pqwoerituytrueiwoq (pqwoerituytrueiwoq) wrote :

This is a patch for some of the missing shortcuts
this patch is for /etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml

this covers alt+print screen, webcam, musicplayer controls, and the calculator keys

for the suspend key i have it run a custom script:

~$ cat /usr/local/bin/suspend
#!/bin/bash
dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend

Revision history for this message
pqwoerituytrueiwoq (pqwoerituytrueiwoq) wrote :

i just wrote a script for toggling the touch pad
$~ cat /usr/local/bin/toggleTouchPad
#!/bin/sh
status=$(synclient -l | grep TouchpadOff | awk '{print $3}')
if [ $status -eq 1 ];then
 # 0 allows edge scrolling; 2 does not allow edge scrolling; 1 is disabled
 status=0
else
 status=1
fi
synclient TouchpadOff=$status
exit

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Partial patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Simon Steinbeiß (ochosi) wrote :

Hey!
Sorry for taking note of this so late!
The gmusicbrowser shortcuts can't be added, as they would block other players (e.g. parole has built-in support for those keys, so hitting the play/pause key wouldn't work anymore there if it were directly bound to a singular app). I guess I'll have to look into a way of setting/supporting those within gmusicbrowser by default.

Sleep and calc should definitely be added I think, we'll have to discuss whether we can easily add a script for the touchpad.

Revision history for this message
pqwoerituytrueiwoq (pqwoerituytrueiwoq) wrote :

what about alt + print screen? that one always annoys me on a clean install
It is assigned Alt+Print by default but Alt+Print becomes SysRq on a normal US keyboard

the webacam key should check for camorama and or guvciewer and suggest to install one if they are both not installed
* the webcam on my desktop has a button that send the same key press event and it only works while the cam is active on it; documentation says it is supposed to snap a picture when you press it

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Alt+Print becoming SysRq is a bug in libxfce4ui, so I'd rather not rely on that (this will be fixed in libxfce4ui 4.10.1 when it is released).

Revision history for this message
Simon Steinbeiß (ochosi) wrote :

Yeah, maybe we should remove that shortcut for now in case 4.10.1 doesn't make it into Saucy...

Revision history for this message
pqwoerituytrueiwoq (pqwoerituytrueiwoq) wrote :

probably better to leave that then, at least you can change the key on it with it not working
if it does not make it into saucy it may end up in the proposed repo after
you could just add a shortcut and have both for the time being

Revision history for this message
Simon Steinbeiß (ochosi) wrote :

About gmusicbrowser: you can go to it's settings dialog > "Keys" and add your media-keys as shortcuts there.
Note: this will obviously only work with gmusicbrowser having focus, but it will allow you to use the keys in other apps (like Parole) as well.

I'll look into shipping that by default.

Revision history for this message
pqwoerituytrueiwoq (pqwoerituytrueiwoq) wrote :

the XF86AudioPlay, XF86AudioPrev, XF86AudioNext, and XF86AudioStop keys are keys i never use
i have key combos for the 1st 3 for gmusicbrowser, which i have set for play at start, start minimized in the tray

Revision history for this message
pqwoerituytrueiwoq (pqwoerituytrueiwoq) wrote :

i just figured they should do something, the only thing that came to mind was gmusicbrower as th key name has Audio in it

Revision history for this message
Pasi Lallinaho (knome) wrote :

Please start a wikipage to create a specification to which commands the function keys should be bound to. This will allow further discussion on the issue and eventually, change in the default settings.

Changed in xubuntu-default-settings (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Pasi Lallinaho (knome)
Changed in xubuntu-default-settings (Ubuntu):
assignee: nobody → Sean Davis (smd-seandavis)
status: Confirmed → Fix Committed
Revision history for this message
Sean Davis (bluesabre) wrote :

I've created the following merge request which will address some of these complaints:

https://code.launchpad.net/~smd-seandavis/xubuntu-default-settings/keyboard-shortcuts/+merge/182352

It seems there has already been some discussion, but I'll add some additional information.

Xf86Launch1,2,3,etc vary across keyboard makers, so we cannot add a specific shortcut to any of these.

XF86WebCam: We do not currently provide a webcam application in Xubuntu, and creating an application to offer installation of one would be additional development work, so it would be a wishlist item for sure.

Your ToggleTouchpad script does seem like it would be useful, please consider proposing it for 14.04 (we're already well beyond feature freeze for 13.10)

Similar to the ToggleTouchpad script, consider proposing your suspend script for 14.04.

As Pasi suggested, you may wish to start a wiki page for these features so that we may more easily discuss and include these improvements. Thanks for reporting this!

Revision history for this message
pqwoerituytrueiwoq (pqwoerituytrueiwoq) wrote :

I found a way to get suspend without the script:
<property name="XF86Sleep" type="string" value="sh -c 'dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend'"/>

can that still make it into 13.10?

Changed in xubuntu-default-settings (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.