SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-08-16 01:29:02

briian
Member
Registered: 2011-08-16
Posts: 21

Help w/ Sound

Hey guys

I'm not sure what to search for this because I don't really understand the problem, so here it is:

When I do FN +F10, 11, or 12 (my mute, sound down, sound up keys respectively), nothing happens. When I drag the sound applet on the bottom it doesn't change it. For example it's muted right now.

I have to use alsamixer to change my sound controls but I'd like for me to be able to set it using the FN keys. I used to have them set on Fluxbox but I was unsure if it was the same.

Thanks

Offline

Help fund CrunchBang, donate to the project!

#2 2011-08-16 03:21:49

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,825
Website

Offline

#3 2011-08-16 11:33:03

briian
Member
Registered: 2011-08-16
Posts: 21

Re: Help w/ Sound

Do you know the commands for amixer?

amixer set Master 2dB+ unmute

Mine is like amixer set +%5 or something. I couldn't find it when I google'd it though because I don't know what to google.

Offline

#4 2011-08-16 11:39:21

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,825
Website

Re: Help w/ Sound

maybe with amixer -c 0 set Master 5%+ unmute

looky looky here: http://crunchbanglinux.org/forums/post/3811/#p3811

Actually amixer set Master 2dB+ unmute should work, too. % and db is not the same, but it should at least change to volume level. Can't check it right now as I am not in openbox.

Last edited by machinebacon (2011-08-16 11:45:02)


Sweaty lads picking up the soap | I love the new "Ignore user" button

Offline

#5 2011-08-16 21:39:10

briian
Member
Registered: 2011-08-16
Posts: 21

Re: Help w/ Sound

Still not working :[

I know that

amixer -c 0 set Master 5%+ unmute

Is right, or at least closer to right. I've used that before on Fluxbox.

They aren't working though.

Offline

#6 2011-08-20 01:48:45

briian
Member
Registered: 2011-08-16
Posts: 21

Re: Help w/ Sound

Still need help with this

Offline

#7 2011-08-20 05:36:36

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,282

Re: Help w/ Sound

This is in my rc.xml, and it works on both my netbook and my desktop:

amixer set Master 3+

For mute:

amixer set Master toggle

Offline

#8 2011-08-20 12:32:29

briian
Member
Registered: 2011-08-16
Posts: 21

Re: Help w/ Sound

That's not working either

:[

I'm not sure why it doesn't, it has in the past.

This is my rc.xml inside <keyboard> </keyboard>

    <keybind key="XF86AudioMute">
      <action name="Execute">
        <execute>amixer set Master toggle</execute>
      </action>
  </keybind>
  <keybind key="XF86AudioLowerVolume">
      <action name="Execute">
        <execute>amixer set Master 3-</execute>
      </action>
  </keybind>
  <keybind key="XF86AudioRaiseVolume">
      <action name="Execute">
        <execute>amixer set Master 3+</execute>
      </action>
  </keybind>

Offline

#9 2011-08-20 13:21:05

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,825
Website

Re: Help w/ Sound

check with xev if the media keys actually work.


Sweaty lads picking up the soap | I love the new "Ignore user" button

Offline

#10 2011-08-20 14:21:05

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,282

Re: Help w/ Sound

^ +1
You'll also see if the keys are showing up as something other than XF86Audio*.

Offline

#11 2011-08-20 18:27:27

briian
Member
Registered: 2011-08-16
Posts: 21

Re: Help w/ Sound

How does Xev work? Nothing ever shows up in the white box. However if I use my brightness keys the brightness changes, Xev still returns nothing :S

Offline

#12 2011-08-20 18:30:29

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,282

Re: Help w/ Sound

The Xev output appears in the terminal.  You could redirect the output (using `>>`) to a text file.

Offline

#13 2011-08-20 18:53:28

briian
Member
Registered: 2011-08-16
Posts: 21

Re: Help w/ Sound

FocusOut event, serial 45, synthetic NO, window 0x2e00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 45, synthetic NO, window 0x2e00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 45, synthetic NO, window 0x0,
    keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

Offline

#14 2011-08-31 19:08:44

briian
Member
Registered: 2011-08-16
Posts: 21

Re: Help w/ Sound

I'm back on #! and still need help

Offline

#15 2011-08-31 19:32:36

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,825
Website

Re: Help w/ Sound

1. open a terminal
2. enter: xev
3: ignore the white window
4: press a key, for example x. you will notice the terminal shows a lot of lines:

KeyPress event, serial 40, synthetic NO, window 0x1c00001,
    root 0x102, subw 0x0, time 44475453, (169,-7), root:(454,97),
    state 0x0, keycode 53 (keysym 0x78, x), same_screen YES,
    XLookupString gives 1 bytes: (78) "x"
    XmbLookupString gives 1 bytes: (78) "x"
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x1c00001,
    root 0x102, subw 0x0, time 44475563, (169,-7), root:(454,97),
    state 0x0, keycode 53 (keysym 0x78, x), same_screen YES,
    XLookupString gives 1 bytes: (78) "x"
    XFilterEvent returns: False

5. take a close look - you see 'state 0x0, keycode 53 (keysym 0x78, x) - this is for demonstration purpose only. We need the keysym value later, but not for the x key. That's why....:
6. press your MUTE media key. Write down the keysym (this one always starts with 0x)
7. In the rc.xml change

  <keybind key="XF86AudioMute"> 

to   

<keybind key="0xTHE_NUMBER_YOU_WROTE_DOWN_IN_STEP_6">

8. Save the rc.xml, and reconfigure/restart openbox (right-click menu -Settings - Openbox config - reconfigure)
9. Do this with all other media keys.

Edit:typo

Last edited by machinebacon (2011-08-31 19:34:32)


Sweaty lads picking up the soap | I love the new "Ignore user" button

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo