Keyboard Shortcuts (audio)

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read this

Keyboard Shortcuts (audio)

Postby arfink on Sat May 26, 2012 10:28 pm

Hi there, I am not sure if this is the correct place to post this, but I think that it is:

I have been trying to set up some keyboard shortcuts on Linux Mint 13 MATE edition, 64 bit. I am trying to set up some keyboard shortcuts using the GUI interface that looks like this:

Image

Setting up keyboard shortcuts for doing things like switching desktops back and forth (Alt+Control+keypad left for example) works just fine. Setting up audio related shortcuts hasn't been working though. None of them do anything, in either Banshee or Rhythmbox. What can I do to fix this?
arfink
Level 1
Level 1
 
Posts: 8
Joined: Wed Nov 21, 2007 1:21 pm

Linux Mint is funded by ads and donations.
 

Re: Keyboard Shortcuts (audio)

Postby xenopeek on Sun May 27, 2012 4:25 pm

Moved here by moderator

Might be that your keyboard's audio keys are not detected? You may test if they fire keyboard events with xinput, as here: viewtopic.php?f=18&t=94341#p540988
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14807
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Keyboard Shortcuts (audio)

Postby arfink on Mon May 28, 2012 6:06 pm

I have not been attempting to use my keyboard's built-in audio function buttons, as my keyboard has none. I am attenpting to use my normal function keys as audio shortcuts.
arfink
Level 1
Level 1
 
Posts: 8
Joined: Wed Nov 21, 2007 1:21 pm

Re: Keyboard Shortcuts (audio)

Postby xenopeek on Tue May 29, 2012 7:21 am

That is not what the screenshot shows. To what have you changed the shortcuts on the volume actions?
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14807
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Keyboard Shortcuts (audio)

Postby arfink on Wed May 30, 2012 4:48 pm

I don't need to remap everything, I just want "Next Track" and "Previous Track" mapped to F9 and F10 respectively. You can see that in the screenshot. Perhaps I should have been more specific.

Interestingly enough, the dialog will register me pressing any key or key combination I have thought of, so the thread you linked to wouldn't really be helpful, since it's clear the dialog is picking up the keypresses. I think this may be another issue.
arfink
Level 1
Level 1
 
Posts: 8
Joined: Wed Nov 21, 2007 1:21 pm

Re: Keyboard Shortcuts (audio)

Postby arfink on Wed May 30, 2012 5:01 pm

Oh, and interestingly enough, I did try remapping the volume and mute keys just to see what would happen. Those ones worked just fine, and I was able to change the volume and mute/unmute with my F9 and F10 keys, but track changes still stubbornly refused to work in any media app I have tried. I have also now tried Totem and VLC.
arfink
Level 1
Level 1
 
Posts: 8
Joined: Wed Nov 21, 2007 1:21 pm

Re: Keyboard Shortcuts (audio)

Postby xenopeek on Thu May 31, 2012 3:55 pm

I'm not sure what is wrong. I tried to set F9 and F10 to track control, then Alt+9 and Alt+0 just to try that. Both don't work with Banshee when playing an album, but the Banshee window does flash/pulse when you press those keys. Like it is receiving them but somehow then ignores them. I think this is a MATE bug, but not sure...
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14807
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Keyboard Shortcuts (audio)

Postby arfink on Thu May 31, 2012 10:17 pm

Vincent Vermeulen wrote:I'm not sure what is wrong. I tried to set F9 and F10 to track control, then Alt+9 and Alt+0 just to try that. Both don't work with Banshee when playing an album, but the Banshee window does flash/pulse when you press those keys. Like it is receiving them but somehow then ignores them. I think this is a MATE bug, but not sure...


Drat.
arfink
Level 1
Level 1
 
Posts: 8
Joined: Wed Nov 21, 2007 1:21 pm

Re: Keyboard Shortcuts (audio)

Postby arfink on Fri Jun 15, 2012 2:13 pm

Is there a potential fix for this?
arfink
Level 1
Level 1
 
Posts: 8
Joined: Wed Nov 21, 2007 1:21 pm

Re: Keyboard Shortcuts (audio)

Postby xenopeek on Sun Jun 17, 2012 3:14 am

It may be that Banshee doesn't support these audio keys (next/previous track), because it has its own shortcuts: http://banshee.fm/support/guide/keyboard-shortcuts/
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14807
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Keyboard Shortcuts (audio)

Postby arfink on Sun Jun 17, 2012 10:53 pm

Well, I can try that with Banshee, but Rythmbox supports those shorcuts in vanilla Ubuntu and when I installed Rhythmbox on Mint it wasn't recognizing the keypresses. Totem is also supposed to recognize those shortcuts, and it hasn't been either. Perhaps I'll try another approach next.
arfink
Level 1
Level 1
 
Posts: 8
Joined: Wed Nov 21, 2007 1:21 pm

Re: Keyboard Shortcuts (audio)

Postby arfink on Wed Jul 04, 2012 12:16 pm

Still borken. :(

And this is really the only bug I have encountered in Mint that's really bothered me. Everything else has just worked.
arfink
Level 1
Level 1
 
Posts: 8
Joined: Wed Nov 21, 2007 1:21 pm

Re: Keyboard Shortcuts (audio)

Postby shrank on Wed Sep 19, 2012 10:59 am

Hi there

I just ran into the same issue after I had to give up my Ubunto 10.04 and switched to Mint. The workaround for Banshee is to create new shortcuts using the banshee cli commands:

banshee --toggle-playing
banshee --next
banshee --previous

You can get the full list of commands here:

bashee --help-playback

The shortcuts have a bit more delay than the direct shortcuts on my old Ubuntu.
shrank
Level 1
Level 1
 
Posts: 1
Joined: Wed Sep 19, 2012 9:57 am

Re: Keyboard Shortcuts (audio)

Postby xenopeek on Wed Sep 19, 2012 5:43 pm

What I've found since switching to Linux Mint 13 MATE as my primary installation, is that the multimedia keys (next/previous track for example) don't work because of some namespace changes between GNOME 2 and MATE. That is apparently being worked on, and in the mean time a user here has created a small script you can add to your system to make the multimedia keys work for common music players again: viewtopic.php?f=47&t=102626#p586479

Perhaps that post will be enough detail for you, but I'll detail it some more. To be clear, this is for MATE only. I've switched to the awesome Quod Libet instead of using Banshee or Rhythmbox (it's ten times as awesome, and ten times as lightweight :)), so I'll detail it for that but probably Banshee will work similar.

1. Download the attached file and extract the mmkeys-mate2mpris2.py file it contains to somewhere in your home folder.
mmkeys-mate2mpris2.py.tar.gz
(862 Bytes) Downloaded 475 times

2. From your Mint Menu open the Startup Applications program. Add a new entry. Give it a descriptive name, for example Multimedia Keys. The command to run is the full path to this mmkeys-mate2mpris2.py file you extracted somewhere in your home folder, followed by a space followed by an ampersand. Let's says you are me, and you just put this file in your Documents folder, then the command would be:
Code: Select all
/home/vincent/Documents/mmkeys-mate2mpris2.py &

3. Log out and log in again, or reboot your computer and this script will be running.

4. Finally, configure your music player to use MPRIS D-Bus. The multimedia key events will be passed from this script to your music player through MPRIS D-Bus. I'm not sure how to do that on Banshee, but for Quod Libet you'd go to Music > Plugins and put a mark next to "MPRIS D-Bus support". For Quod Libet that's all there is to it, your multimedia keys will now work.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14807
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Keyboard Shortcuts (audio)

Postby agarbato on Tue Nov 06, 2012 6:41 pm

Same here, sounds shortcuts not working, all else seems to work properly.
As a workaround I put some custom keybinds, you won't see any screen notification but it works.

Create follow shortcuts (give them name you like, it doesn't really matter)
Then save and assign a key you like.

Name : alsa++
Command : amixer sset Master,0 5+


Name : alsa--
Command : amixer sset Master,0 5-


Name : amute
Command : amixer sset Master,0 toggle


Enjoy :D
agarbato
Level 1
Level 1
 
Posts: 1
Joined: Tue Nov 06, 2012 6:32 pm

Re: Keyboard Shortcuts (audio)

Postby inyriljace on Sun Dec 02, 2012 7:22 pm

@Vincent Vermeulen,

I tried doing what you said but the multimedia keys still don't work. Maybe it's because I use Rhythmbox and Banshee, not Quod Libet. Also, when I searched for MPRIS D-Bus support, I didn't find it. All I found was MPRIS D-Bus interface. I'm assuming it would be a different thing to the support and would make a difference. Any advice as to what to do now?
inyriljace
Level 1
Level 1
 
Posts: 9
Joined: Sat Oct 27, 2012 2:17 am

Re: Keyboard Shortcuts (audio)

Postby xenopeek on Mon Dec 03, 2012 12:25 pm

It should work for Rhythmbox and Banshee as well, after enabling MPRIS D-Bus "whatever it is called" on them. It's not specific to Quod Libet.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14807
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Keyboard Shortcuts (audio)

Postby kontiky on Thu Jan 16, 2014 10:05 am

Is any update with this problem in latest Mint versions?
kontiky
Level 1
Level 1
 
Posts: 4
Joined: Sat May 11, 2013 7:26 am

Re: Keyboard Shortcuts (audio)

Postby ben2talk on Mon Feb 10, 2014 11:08 pm

xenopeek wrote:I'm not sure what is wrong. I tried to set F9 and F10 to track control, then Alt+9 and Alt+0 just to try that. Both don't work with Banshee when playing an album, but the Banshee window does flash/pulse when you press those keys. Like it is receiving them but somehow then ignores them. I think this is a MATE bug, but not sure...


Annoyingly, Banshee has nice 'N' for 'next' and 'b' for 'back' shortcuts - for which the application must be selected.

Logitech K270 keys all work perfectly, Play/Pause responds as do Volume +/_/off
Home, mail, sleep and calculator too.... so I'm assuming this is a bigger issue with skip keys.

k400r

F1 Super+D
F2 Ctrl+Super+Backs
F3 Search
F4 Super H
F5 Super K
F6 Super I
F7 Previous track
F8 Play Pause
F9 Next track
F10 Mute
F11 Vol-
F12 vol+
ben2talk
Level 1
Level 1
 
Posts: 39
Joined: Tue Jun 28, 2011 12:46 am

Linux Mint is funded by ads and donations.
 

Return to Hardware Support

Who is online

Users browsing this forum: No registered users and 9 guests