You are not logged in.

#1 2009-08-12 14:10:22

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

[Solved] MPC Volume command problem.

Hello.
When I type mpc volume +5 or mpc volume -5 I got error:

error: ACK [5@0] {} unknown command "volume"

I'm using mpd-git and in ncmpcpp change the volume works wink

Last edited by SpeedVin (2009-08-12 18:07:48)


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#2 2009-08-12 15:00:15

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [Solved] MPC Volume command problem.

there was discussion on the ML about how the new mpd drops support for relative volume adjustments.  I'm confused as to why yours works in ncmpcpp, i get failures no matter how i try to adjust the volume.  (doesnt bother me though, i never set my volume that way anyway).

Last edited by brisbin33 (2009-08-12 15:00:45)

Offline

#3 2009-08-12 15:47:35

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved] MPC Volume command problem.

brisbin33 wrote:

there was discussion on the ML about how the new mpd drops support for relative volume adjustments.  I'm confused as to why yours works in ncmpcpp, i get failures no matter how i try to adjust the volume.  (doesnt bother me though, i never set my volume that way anyway).

Hmm how now I will set my volume?
Maybe by ossxmixer?


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#4 2009-08-12 15:57:10

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [Solved] MPC Volume command problem.

SpeedVin wrote:
brisbin33 wrote:

there was discussion on the ML about how the new mpd drops support for relative volume adjustments.  I'm confused as to why yours works in ncmpcpp, i get failures no matter how i try to adjust the volume.  (doesnt bother me though, i never set my volume that way anyway).

Hmm how now I will set my volume?
Maybe by ossxmixer?

your welcome to use my ossvol script if you'd like.  shouldn't take much tweaking.

Offline

#5 2009-08-12 17:18:07

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved] MPC Volume command problem.

Ok script work's but I have few error's:

Value of mixer control vmix0-outvol set to 25.0
dzen: error, cannot load font: '-xos4-terminus-*-*-*-*-12-*-*-*-*-*-*-*'

How do configure it to use terminus font?


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#6 2009-08-12 17:21:13

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 714

Re: [Solved] MPC Volume command problem.

look it up , there should be a config file somewhere . Or just use keybindings for volume up/down

Offline

#7 2009-08-12 17:25:00

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved] MPC Volume command problem.

jelly wrote:

look it up , there should be a config file somewhere . Or just use keybindings for volume up/down

I got in my xorg.conf files section /usr/share/fonts/local and I can't use my keybinding's becouse it was mpc work sad


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#8 2009-08-12 17:29:21

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [Solved] MPC Volume command problem.

SpeedVin wrote:

Ok script work's but I have few error's:

Value of mixer control vmix0-outvol set to 25.0
dzen: error, cannot load font: '-xos4-terminus-*-*-*-*-12-*-*-*-*-*-*-*'

How do configure it to use terminus font?

use xfontsel to pick a different font. 

that line worked for me before i switched to xft:Verdana, but i could've typoed something since then.  xfontsel will give you a working terminus line you can use.

/edit: You can ditch the dzen stuff entirely if you don't need/want the OSD.  and obviously your mpc keybinds won't work, just rebind them to my script (or even directly to the ossmix commands from the script)... i recommend xbindkeys to take care of it in a WM-agnostic way.

the relevant portions of my .xbindkeysrc...

"(/home/patrick/.bin/ossvol -t)"
    m:0x10 + c:121
    Mod2 + XF86AudioMute

"(/home/patrick/.bin/ossvol -d 1)"
    m:0x10 + c:122
    Mod2 + XF86AudioLowerVolume

"(/home/patrick/.bin/ossvol -i 1)"
    m:0x10 + c:123
    Mod2 + XF86AudioRaiseVolume

check our wiki for setup instructions

Last edited by brisbin33 (2009-08-12 17:37:00)

Offline

#9 2009-08-12 17:44:09

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved] MPC Volume command problem.

brisbin33 wrote:
SpeedVin wrote:

Ok script work's but I have few error's:

Value of mixer control vmix0-outvol set to 25.0
dzen: error, cannot load font: '-xos4-terminus-*-*-*-*-12-*-*-*-*-*-*-*'

How do configure it to use terminus font?

use xfontsel to pick a different font. 

that line worked for me before i switched to xft:Verdana, but i could've typoed something since then.  xfontsel will give you a working terminus line you can use.

/edit: You can ditch the dzen stuff entirely if you don't need/want the OSD.  and obviously your mpc keybinds won't work, just rebind them to my script (or even directly to the ossmix commands from the script)... i recommend xbindkeys to take care of it in a WM-agnostic way.

the relevant portions of my .xbindkeysrc...

"(/home/patrick/.bin/ossvol -t)"
    m:0x10 + c:121
    Mod2 + XF86AudioMute

"(/home/patrick/.bin/ossvol -d 1)"
    m:0x10 + c:122
    Mod2 + XF86AudioLowerVolume

"(/home/patrick/.bin/ossvol -i 1)"
    m:0x10 + c:123
    Mod2 + XF86AudioRaiseVolume

check our wiki for setup instructions

Thanks where I can find xfontsel I can find it in xorg-apps maybe it's in xorg-fonts-utils?

Last edited by SpeedVin (2009-08-12 17:44:31)


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#10 2009-08-12 17:59:03

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved] MPC Volume command problem.

Ok script and my keys working awsome thanks brishbin33 smile
Now I have to work with dzen2 becouse I wat use it to your downlad.sh script to uzbl wink

Last edited by SpeedVin (2009-08-12 18:02:46)


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#11 2009-08-12 18:02:28

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [Solved] MPC Volume command problem.

┌─[ 13:48 ][ blue:~ ]
└─> pacman -Qo /usr/bin/xfontsel
/usr/bin/xfontsel is owned by xorg-utils 7.4-4

/path/to/ossvol -d 5 is fine as an argument (as you can see in my .xbindkeysrc file) no sh needed. i'm guessing you just haven't setup xbindkeys properly, did you follow our fine wiki?

if a command works from CLI then it'll work from xbindkeys, once properly setup and running of course.  best of luck.

Offline

#12 2009-08-12 18:07:20

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved] MPC Volume command problem.

brisbin33 wrote:
┌─[ 13:48 ][ blue:~ ]
└─> pacman -Qo /usr/bin/xfontsel
/usr/bin/xfontsel is owned by xorg-utils 7.4-4

/path/to/ossvol -d 5 is fine as an argument (as you can see in my .xbindkeysrc file) no sh needed. i'm guessing you just haven't setup xbindkeys properly, did you follow our fine wiki?

if a command works from CLI then it'll work from xbindkeys, once properly setup and running of course.  best of luck.

Thanks for help , and yor script you really much help my smile
I give a virtual cookie if I can wink


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#13 2009-08-12 18:34:24

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [Solved] MPC Volume command problem.

glad you've got it working, i'll munch on that cookie while i go polish up download.sh for ya big_smile

Offline

Board footer

Powered by FluxBB