tag:blogger.com,1999:blog-1536634109450452533.post4675725153358732476..comments2023-05-11T01:37:51.811-07:00Comments on dedrop: mediactrl: controlling laptop media buttonsPedro DeRosehttp://www.blogger.com/profile/14833075200638108981noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-1536634109450452533.post-12193828642820460782008-12-28T21:27:00.000-08:002008-12-28T21:27:00.000-08:00when I hit, say, the "next" button, the mediactrl ...<B>when I hit, say, the "next" button, the mediactrl file gets opened in a text editor</B><BR/><BR/>Try making sure that mediactrl is executable by chmoding it correctly. If you can run it from the command line, it should work fine.<BR/><BR/><B>I'm not getting any OSD (someone told me it seems to be broken for Dell laptops)</B><BR/><BR/>I haven't had any trouble getting it to work myself. Make sure you've turned on the kmilo service in your System Settings. That may make a difference.Pedro DeRosehttps://www.blogger.com/profile/14833075200638108981noreply@blogger.comtag:blogger.com,1999:blog-1536634109450452533.post-43521202808086886152008-11-01T19:54:00.000-07:002008-11-01T19:54:00.000-07:00I just tried this, but when I hit, say, the "next"...I just tried this, but when I hit, say, the "next" button, the mediactrl file gets opened in a text editor. And even though I just emerged kmilo, I'm not getting any OSD (someone told me it seems to be broken for Dell laptops). Have you run into anything like that?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1536634109450452533.post-15059636023093632682008-02-09T13:52:00.000-08:002008-02-09T13:52:00.000-08:00Can I run mediactrl volume up or down from Konsole...<B>Can I run mediactrl volume up or down from Konsole (how)?</B><BR/><BR/>You sure can. And you're right to do so for debugging. mediactrl is a script, so I'd suggest putting it in /usr/local/bin instead of /etc (though mediactrl.conf should still go in /etc). Then, you can type<BR/><I>/usr/local/bin/mediactrl playpause</I> into Konsole,<BR/>for example. This will run one of the playpause commands you specify in /etc/mediactrl.conf.<BR/><BR/>Since mediactrl just runs commands, I'd first check that the command works. For example, with amarok running, type <I>dcop amarok player playPause</I> into Konsole. That should make amarok start playing. Once it does, since that's set as amarok_playpause in mediactrl.conf, then mediactrl should work.Pedro DeRosehttps://www.blogger.com/profile/14833075200638108981noreply@blogger.comtag:blogger.com,1999:blog-1536634109450452533.post-36320759927031474712008-02-09T02:14:00.000-08:002008-02-09T02:14:00.000-08:00..still cannot get it to work :(I mapped my media .....still cannot get it to work :(<BR/><BR/>I mapped my media keys to XF86AudioMute, etc, and added Input actions in KCC as described..<BR/><BR/>Can I run mediactrl volume up or down from Konsole (how)? I ran /etc/mediactrl playpause in console and got:<BR/><BR/>ERROR: Couldn't attach to DCOP server!<BR/><BR/>I'm using PCLinuxOS if it matters.Unknownhttps://www.blogger.com/profile/05286622012370062355noreply@blogger.comtag:blogger.com,1999:blog-1536634109450452533.post-3972428246252943182008-02-08T23:58:00.000-08:002008-02-08T23:58:00.000-08:00Thanks..I had a bit of trouble with key mapping, b...Thanks..<BR/><BR/>I had a bit of trouble with key mapping, but then I found <A HREF="http://dev-loki.blogspot.com/2006/04/mapping-unsupported-keys-with-xmodmap.html" REL="nofollow">your post on this</A>.<BR/><BR/>Thanks Again!Unknownhttps://www.blogger.com/profile/05286622012370062355noreply@blogger.comtag:blogger.com,1999:blog-1536634109450452533.post-6224976153685188112008-02-08T22:24:00.000-08:002008-02-08T22:24:00.000-08:00This comment has been removed by the author.Unknownhttps://www.blogger.com/profile/05286622012370062355noreply@blogger.comtag:blogger.com,1999:blog-1536634109450452533.post-84801255325088618362008-02-07T08:39:00.000-08:002008-02-07T08:39:00.000-08:00travisn000 said...Can you expand on: "I map it to ...<B>travisn000 said...Can you expand on: "I map it to the laptop media buttons through the KDE Accessibility settings"</B><BR/><BR/>Sure. I did the following.<BR/><BR/>1. Go to K->System Settings->Accessibility, then choose "Input Actions" on the left.<BR/>2. Click the "New Group" button along the bottom, then rename the group to "Media Keys" (on the right).<BR/>3. Click the "New Action" button. Rename the action to "Next", and choose "Action type" as "Keyboard Shortcut -> Command/URL (simple)" from the drop-down menu (all on the right). This changes the available tabs along the top.<BR/>4. Click on the "Keyboard Shortcut" tab, then on the "None" button, and press the keyboard button you want to map to mediactrl's "next" action.<BR/>5. Click on the "Command/URL Settings" tab, and set the command to "/path/to/mediactrl next" (of course, replace /path/to/mediactrl with the actual path to mediactrl).<BR/>6. Repeat steps 3-5 for the other mediactrl commands.<BR/>7. Click the "Apply" button at the very bottom, and everything should work.Pedro DeRosehttps://www.blogger.com/profile/14833075200638108981noreply@blogger.comtag:blogger.com,1999:blog-1536634109450452533.post-25859602412513967942008-02-06T23:46:00.000-08:002008-02-06T23:46:00.000-08:00..Can you expand on:"I map it to the laptop media .....Can you expand on:<BR/>"I map it to the laptop media buttons through the KDE Accessibility settings"<BR/><BR/>What action type and settings/conditions have to be specified?<BR/><BR/>For example for volume up, what action type and settings/conditions do I specify?Unknownhttps://www.blogger.com/profile/05286622012370062355noreply@blogger.com