Multimedia Keys in Awesome Window Manager [SOLVED]

Hey,
I've googled, searched, grepped and scanned about this for weeks, and I think I can't get it working on my own, although I'm sure the right answer is just out there waiting to be found, and one of you brighter minds might just know it already. Right, here's what happens.
I was using openbox, and the keybindings were working just fine. This should probably discard missing symbols or scancodes for the keys, IMHO. Then I switch over to Awesome, and fall in love. The awesome (pun intended) config files by anrxc made it even better, and these days I can't live without my awesome. But I also wanted my volume keys to work. Not like I mind opening a terminal and popping alsamixer... I got 15 of them open all the time anyway. But I still wanted to use the fancy buttons.
The strange thing is, the keys seem to "disappear" as soon as I map them somewhere. I've tried binding them in rc.lua:
awful.key({}, "#121", function () exec("pvol.py -m", false) end),
awful.key({}, "#122", function () exec("pvol.py -c -2", false) end),
awful.key({}, "#123", function () exec("pvol.py -c 2", false) end),
pvol.py is a script (made by anrxc too) that does stuff to the volume and displays a cute gtk progress bar to indicate current volume level. Invoking it from the terminal works fine.
I also tried using xbindkeys:
"pvol.py -m"
XF86AudioMute
"pvol.py -c -2"
XF86AudioLowerVolume
"pvol.py -c 2"
XF86AudioRaiseVolume
But the result was the same. Here's the output of xev with the keys unbound:
KeyPress event, serial 25, synthetic NO, window 0x1600001,
root 0x15a, subw 0x0, time 4706773, (74,267), root:(796,288),
state 0x10, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x1600001,
root 0x15a, subw 0x0, time 4706853, (74,267), root:(796,288),
state 0x10, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 28, synthetic NO, window 0x1600001,
root 0x15a, subw 0x0, time 4712422, (74,267), root:(796,288),
state 0x10, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x1600001,
root 0x15a, subw 0x0, time 4712534, (74,267), root:(796,288),
state 0x10, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 28, synthetic NO, window 0x1600001,
root 0x15a, subw 0x0, time 4713862, (74,267), root:(796,288),
state 0x10, keycode 121 (keysym 0x1008ff12, XF86AudioMute), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x1600001,
root 0x15a, subw 0x0, time 4713878, (74,267), root:(796,288),
state 0x10, keycode 121 (keysym 0x1008ff12, XF86AudioMute), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
As you can see, they respond to the key codes 121. 122, and 123. Going to a console and running showkey, however, gives me the key codes 113, 114, and 115. I've tried mapping both, and the X11 symbols, with the same result. Below, a sample of xev's output when I bind the keys somewhere (out put for a single key, all result in the same output):
FocusOut event, serial 29, synthetic NO, window 0x1600001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 29, synthetic NO, window 0x1600001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 29, 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
And of course, nothing happens. The same happens whether I bind the keys in awesome or through xbindkeys. I have to admit, I'm pretty much out of ideas. Anyone seen this before?
Last edited by mkaito (2010-06-16 15:06:06)

d2ogch3n wrote:
Here's what I have
    -- Multimedia keys
    awful.key({ }, "XF86AudioRaiseVolume",    function () awful.util.spawn("amixer set Master 2+") end),
    awful.key({ }, "XF86AudioLowerVolume",    function () awful.util.spawn("amixer set Master 2-") end)
Just to clarify for anyone who comes across this, "%" is needed after the number. It should be:
awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer set Master 2%+") end),
awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set Master 2%-") end)
You should also be able to add Mute functionality:
awful.key({ }, "XF86AudioMute", function () awful.util.spawn("amixer set Master toggle") end)
Also, to get rid of the loading cursor, pass false as a second argument to all three of these:
awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer set Master 2%+", false) end),
awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set Master 2%-", false) end)
awful.key({ }, "XF86AudioMute", function () awful.util.spawn("amixer set Master toggle", false) end)
The AWM wiki is the source for this:
http://awesome.naquadah.org/wiki/Volume … nd_display

Similar Messages

  • [SOLVED] Multimedia key keybindings i3 window manager

    I have special key on my keyboard for stop (XF86AudioStop) play/pause (XF86AudioPlay) next (XF86AudioNext) and previous (XF86AudioPrev).
    Is it possible to make keybindings for ncmpcpp or mpd for these keys?
    Note: I would like not to have to install additional packages, though "no new package rule" is preferable it's also reconsiderable.
    Last edited by bstaletic (2014-06-04 08:46:55)

    here's my media keys section
    # media keys
    bindsym XF86AudioRaiseVolume exec $HOME/Launchers/volumeControl up
    bindsym XF86AudioLowerVolume exec $HOME/Launchers/volumeControl down
    bindsym XF86AudioMute exec $HOME/Launchers/volumeControl mute
    bindsym XF86AudioPlay exec mpc toggle
    bindsym XF86AudioStop exec mpc stop
    bindsym XF86AudioPrev exec $HOME/Launchers/mpcPrevSong.sh
    bindsym XF86AudioNext exec mpc next
    my volumeControl script
    my mpcPrevSong.sh script

  • [SOLVED] Awesome Windows Manager terminal not opening

    Hello,
    I recently reinstalled Arch on my UEFI laptop. It went pretty smoothly, apart from the fact that whenever I start up arch it says that it failed to activate my swap partition. But that's not the problem I'm posting about. I installed Xorg, and then AWM, and adding "exec awesome" to ~/.xinitrc, and Awesome starts up nicely when I run startx. However, when awesome starts up, I can't open a terminal window. I've taken to just exiting Awesome whenever I want to run a command, which is a real pain in the arse when I just installed and I'm still pacmanning like crazy for all the packages I need.
    Do you guys know what's wrong? I can right click, but when I click "open terminal", or "manual" or "edit config", nothing happens. No windows pops up under any of the tags, no application appears on the toolbar at the top. "restart" and "quit" work, so it's nothing to do with the actual right click menu / menu that pops up when you click the button in the top left.
    Any help would be greatly appreciated. I looked online, it doesn't seem like anyone else has this problem...
    Last edited by plomp90 (2013-10-03 01:47:33)

    Also, don't forget you can swap to a virtual terminal via Ctrl-Alt-F2, for instance. And Ctrl-Alt-F1 to get back (well, to be pedantic, Alt-F1 works from the terminal, but I prefer to just use the one that always works)

  • [SOLVED] How to install themes in awesome window manager?

    Hello world!
    I am trying to customize my awesome (literally and figuratively) system, and I keep breaking my rc.lua (luckily I keep backups). The theme I'm trying to install is Darklooks. Following the directions in This Article: http://solitudo.net/software/awesome/themes/
    I cloned the themes repository and copied Darklooks to my ~/.config/awesome/themes folder, then following the advice of the arch wiki, I changed a line in my rc.lua from
    beautiful.init("/usr/share/awesome/themes/default/theme.lua")
    to
    beautiful.init(awful.util.getdir("config") .. "/themes/Darklooks/theme.lua")
    Unfortunately, when I restart awesome, I get a ton of errors, to where I'm having trouble picking out any of them to read, but everything that is normally colored is black, like it's missing a color value.
    Any thoughts, hints, suggestions, or solutions would be much appreciated.
    On another note: This is somewhat related, but I'm not really sure if this belongs in another thread, so If I need to edit this out and start a new thread, please tell me:
    What exactly will the theme change? I know it will change the panel colors and such, but will it also change icons or do I install other icons separately? Also, If I were to add an icon theme, would that affect the indicators I have on the panel? For example, I have wicd-gtk and a battery monitor (I think it's batterymon?) that start with awesome and display on the panel, but the icons for those on the panel are pretty ugly. Is that something that would be changed by adding an icon pack, or is how they appear determined by the application itself?
    Once again, I appreciate any and all solutions, opinions, etc.
    Last edited by TheGuyWithTheFace (2013-07-21 01:16:48)

    Chances are that the theme you want to use has not been updated to work with the latest version of awesome.
    Remember ever version change in awesome comes with code changes that require you to re-edit/write your rc.lua, I would see if you can find an email address for the author & contact him/her directly to see if it is compatible.

  • Awesome window manager client rule for "GtkFileChooserDialog"

    Hi,
    I've set up my current awesome wm so that the web browser (chromium) always opens on tag 2 of screen 1.
    When I have an external screen however, I soemtimes like to move the web browser to the external screen.
    The problem with my setup is that when I want to e.g. download something, the file chooser dialog opens (of course)
    on tag 2 of screen 1, instead of the current tag and screen of the main window of my web browser.
    Is there a way to set a rule for clients that are dialog windows to appear floating on the same tag and screen
    as the window that started the dialog?
    When I wanted to make a rule for this, the first problem I encountered is that the class and name of the dialog or the same as the main window.
    So I wondered if I can use other properties of windows besides name, class or instance.
    The second problem is that I do not know how to get the screen and tag of the window that opened the dialog?
    xprop of main window:
    _NET_WM_DESKTOP(CARDINAL) = 0
    _NET_WM_USER_TIME(CARDINAL) = 1953613
    WM_STATE(WM_STATE):
    window state: Normal
    icon window: 0x0
    WM_HINTS(WM_HINTS):
    Client accepts input or input focus: True
    Initial state is Normal State.
    bitmap id # to use for icon: 0x100004d
    bitmap id # of mask for icon: 0x100004e
    window id # of group leader: 0x1000001
    _GTK_HIDE_TITLEBAR_WHEN_MAXIMIZED(CARDINAL) = 1
    XdndAware(ATOM) = BITMAP
    _MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0
    _NET_WM_ICON(CARDINAL) = Icon (64 x 64):
    ... (deleted icons) ...
    WM_WINDOW_ROLE(STRING) = "browser"
    _NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 16777288
    _NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
    _NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x1000047
    WM_CLIENT_LEADER(WINDOW): window id # 0x1000001
    _NET_WM_PID(CARDINAL) = 1164
    WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
    WM_CLIENT_MACHINE(STRING) = "arch"
    WM_NORMAL_HINTS(WM_SIZE_HINTS):
    program specified minimum size: 266 by 63
    window gravity: NorthWest
    WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
    WM_CLASS(STRING) = "chromium", "Chromium"
    WM_ICON_NAME(STRING) = "Post new topic / Arch Linux Forums - Chromium"
    _NET_WM_ICON_NAME(UTF8_STRING) = "Post new topic / Arch Linux Forums - Chromium"
    WM_NAME(STRING) = "Post new topic / Arch Linux Forums - Chromium"
    _NET_WM_NAME(UTF8_STRING) = "Post new topic / Arch Linux Forums - Chromium"
    xprop of dialog:
    WM_STATE(WM_STATE):
    window state: Normal
    icon window: 0x0
    _NET_WM_STATE(ATOM) = _NET_WM_STATE_MODAL
    WM_HINTS(WM_HINTS):
    Client accepts input or input focus: True
    Initial state is Normal State.
    bitmap id # to use for icon: 0x100004d
    bitmap id # of mask for icon: 0x100004e
    window id # of group leader: 0x1000001
    XdndAware(ATOM) = BITMAP
    _MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0
    _NET_WM_ICON(CARDINAL) = Icon (64 x 64):
    ... (deleted icons) ...
    WM_WINDOW_ROLE(STRING) = "GtkFileChooserDialog"
    WM_TRANSIENT_FOR(WINDOW): window id # 0x1000046
    _NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 16796216
    _NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DIALOG
    _NET_WM_USER_TIME(CARDINAL) = 1703990
    _NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x1004a37
    WM_CLIENT_LEADER(WINDOW): window id # 0x1000001
    _NET_WM_PID(CARDINAL) = 1164
    WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
    WM_CLIENT_MACHINE(STRING) = "arch"
    WM_NORMAL_HINTS(WM_SIZE_HINTS):
    program specified location: 0, 0
    program specified minimum size: 545 by 294
    window gravity: NorthWest
    WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
    WM_CLASS(STRING) = "chromium", "Chromium"
    WM_ICON_NAME(STRING) = "Save File"
    _NET_WM_ICON_NAME(UTF8_STRING) = "Save File"
    WM_NAME(STRING) = "Save File"
    _NET_WM_NAME(UTF8_STRING) = "Save File"
    So, something like:
    { rule = {window_role = "GtkFileChooserDialog"}, properties = {tag = mainwindow.tag, screen = mainwindow.screen} }
    (apologies for the limited pseudo lua-code)
    Any kind of help would be much appreciated
    grtz

    { rule = { role = "GtkFileChooserDialog" },
    properties = { floating = true, ontop = true },
    callback = function (c)
    awful.placement.centered(c, nil)
    awful.client.movetotag(tags[mouse.screen][awful.tag.getidx()], c)
    end

  • Awesome Window Manager Caps Lock icon

    i just got a thinkpad x120e. there is no led for when the caps lock key is on.
    does anyone know if there is a way to show an icon in the wibox when the caps lock is on?

    You could also check it with a little help from xset
    #!/bin/bash
    # Here's a example in bash, doesn't do much more then just echo on or off
    CAPS_STATE=$(xset q)
    PATTERN='Caps Lock:\s+(on|off)'
    if [[ "$CAPS_STATE" =~ $PATTERN ]]; then
    # Match
    echo ${BASH_REMATCH[1]}
    exit 0
    else
    # Nothing...
    exit 1
    fi
    You could call that shellscript for your widget to get caps lock's state.
    Or you could run xset q directly from lua in your widget and
    take care of it there and have one script less to care about
    Since I haven't done anything else in lua other than the settings
    for awesome.. this can likely be done better
    function caps_is()
    local f = io.popen("xset q")
    for line in f:lines() do
    local _, _, caps_state = string.find(line, 'Caps Lock:%s+(%w+)')
    if caps_state ~= nil then
    f:close()
    return caps_state
    end
    end
    f:close()
    return "unknown"
    end

  • Awesome window manager: How to keep application always on top

    Is it possible to keep media player applications always on top ?
    Following is my current configuration.
    { rule = { class = "Vlc" },
    properties = { floating = true, ontop = true } }
    This is working fine whenever I start application. But problem is, if I go to full screen and come back, ontop flag is unset.
    Is there anyway to fix this ?

    shmibs wrote:
    you could probably do something like
    client.connect_signal("property::fullscreen", function(c)
    if c.class == "mplayer" then
    c.ontop = true
    end
    end)
    i haven't tested this, though, so don't be surprised when it fails
    This is working partially. ie, VLC is keeping ontop propery, but video is not going full screen.

  • Window Manager

    So I was messing around with awesome window manager last night, and then I thought: what about my battery power?
    All I really need is a battery meter for my laptop. That's it.  Is there anyway to do with awesome?
    Edit: how do you connect to wifi with just a wm? I've heard about wicd, but I'm still not sure.
    Also - can you use TWM under XFCE?
    Last edited by COMMUNISTCHINA (2008-07-01 13:40:23)

    when it comes to wireless management, i have used netcfg2 even under kde and gnome. imho it's the best wifi managers out there.
    all you have to do is create simple files(s) under /etc/network.d/ (you can use files in /etc/network.d/example/ - just copy wpa.example or ethernet.example form there, then modify and rename it to your needs) with connection information.
    then add NETWORKS=("auto-wireless wlan0" ethernet) line into network section in rc.conf.
    you also have to add net-profiles into the dameons list in the rc.conf file and you're done.
    it loads the connection on boot and the connection stays active even when the x cannot start. and also it's very stable (which i can't say about networkmanager).
    if you need to connect different network after the boot, just type netcfg2 networkname and it's up.
    simple and easy - the arch way.
    netcfg wiki page

  • [SOLVED!] KDE 4.11 - Window Manager seems not to be running?

    Greetings,
    I still seem unable to fix the fact that systemsettings will run. However it will run if you do kdesu systemsettings.
    Doing so I started checking around in it and thought I'd look at the desktop effects, when I was greeted with this:
    So, I am guessing that the window borders and buttons are a figment of my imagination....
    This is after me pretty much starting over with KDE, removing the .kde and .kde4 folders.
    Help?
    Edit: That pic seems to not link right. Yay. Basically it says that effects can not be activated or whatever because a window manager seems not to be running. The irony of it is you can see the fact that there are window borders and buttons and such, evidence of a WM...
    I wonder if there is something here that is related to me not being able to run systemsettings... yet systemsettings will run fine in any other environment - including Gnome Shell.
    Another thing, KDE 4.11 ran great in testing and kde_unstable. Once it went to extra, things happened. I find that odd. Maybe something is missing on my end that most archers already have?
    Edit2: fixed image link
    Last edited by mythus (2013-08-25 20:49:38)

    No omeringen, Nvidia user.
    I can try again Thaodan since I've had some updates come through (and weeded out some dot files). Last time I tried I saw OpenGL 2 selected. Trying to change to 3 or anything else also got the screenshot in my OP.
    I'll log into KDE and see if it still does the same, after a brief check for last minute updates.
    EDIT: OK, so I can mark this as solved. I found an odd dot file, who's name excapes me but deals with kde sessions, just sitting around in the home folder. Once I deleted it and restarted, I found that not only System Settings finally ran again as a user, but I could also change and apply desktop effects. Peculiar. I thought that maybe it was a dot file that was causing the problem, that wasn't in the .kde or .kde4 folder. It just took finding it and removing it.
    I wish I knew more to tell, but this at least solves my issue, and the issue with the non-running-as-user system settings I had posted in another thread (thinking that they were separate events. Thanks again for all your help guys!
    Last edited by mythus (2013-08-25 20:49:05)

  • [solved] OpenGL apps in window do not obey window manager

    Hello,
    I have another X related problem, the first one resulted in downgrading my X
    (see http://bbs.archlinux.org/viewtopic.php?id=44460 )
    Now I am finally able to run both xv (video rendering) and dri (3d rendering), but
    I have a problem, that when I run an opengl app in window (for example glxgears, but also game emulators and games in Wine), it does not move or resize when the window manager tells it to, e.g. when I move or resize the window. This makes 3D in window nearly unusable.
    In my previous linux (suse) this worked normally; DRI was on and I was able to resize or move the 3D apps windows
    card:
    01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G550 AGP (rev 01)
    X version:
    [danny@zdroj ~]$ X -version
    X Window System Version 7.2.0
    Release Date: 22 January 2007
    X Protocol Version 11, Revision 0, Release 7.2
    Build Operating System: UNKNOWN
    Current Operating System: Linux zdroj 2.6.24-ARCH #1 SMP PREEMPT Wed Feb 27 01:15:32 CET 2008 i686
    Build Date: 08 April 2007
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    Module Loader present
    xorg.conf:
    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    EndSection
    Section "ServerFlags"
    Option "IgnoreABI" "True"
    Option "AIGLX" "False"
    EndSection
    Section "Extensions"
    Option "XVideo" "enable"
    EndSection
    Section "Files"
    RgbPath "/usr/share/X11/rgb"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/local"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/TTF"
    FontPath "/usr/share/fonts/Type1"
    FontPath "/usr/share/fonts/artwiz-fonts/"
    EndSection
    Section "Module"
    Load "xtrap"
    Load "dbe"
    Load "GLcore"
    Load "extmod"
    Load "record"
    Load "dri"
    Load "glx"
    Load "drm"
    #Load "xv"
    Load "freetype"
    #Load "type1"
    #Load "v4l"
    #Load "drm"
    #Load "type1"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    Option "XkbLayout" "us,cz_qwerty"
    Option "XkbModel" "pc104"
    Option "XkbOptions" "grp:alt_shift_toggle,grp:switch,grp_led:scroll"
    EndSection
    Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5"
    EndSection
    Section "Monitor"
    DisplaySize 380 300 # mm
    Identifier "Monitor0"
    VendorName "BNQ"
    ModelName "BenQ FP91G+"
    ### Comment all HorizSync and VertRefresh values to use DDC:
    HorizSync 30.0 - 83.0
    VertRefresh 43.0 - 76.0
    Option "DPMS"
    UseModes "Modes[0]"
    EndSection
    Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
    ### [arg]: arg optional
    #Option "HWcursor" # [<bool>]
    #Option "PciRetry" # [<bool>]
    #Option "SyncOnGreen" # [<bool>]
    #Option "NoAccel" # [<bool>]
    #Option "Overlay" # [<str>]
    #Option "MGASDRAM" # [<bool>]
    #Option "ShadowFB" # [<bool>]
    #Option "UseFBDev" # [<bool>]
    #Option "ColorKey" # <i>
    #Option "SetMclk" # <freq>
    #Option "OverclockMem" # [<bool>]
    #Option "VideoKey" # <i>
    #Option "TexturedVideo" # [<bool>]
    #Option "Int10" # [<bool>]
    #Option "AGPMode" # <i>
    #Option "AGPSize" # <i>
    #Option "DRI" # [<bool>]
    #Option "OldDmaInit" # [<bool>]
    #Option "ForcePciDma" # [<bool>]
    #Option "AccelMethod" # [<str>]
    Identifier "Card0"
    Driver "mga"
    VendorName "Matrox Graphics, Inc."
    BoardName "MGA G550 AGP"
    BusID "PCI:1:0:0"
    Option "HwCursor" "off" #protoze jinak tam neni
    Option "DRI" "on"
    Option "AGPMode" "4"
    #Option "OldDmaInit" "true"
    #Option "ShadowFB" "on" # 1
    #Option "TexturedVideo" "on" # 2
    #Option "VideoOverlay" "on"
    #Option "AccelMethod" "EXA"
    #Option "Overlay" "24,8"
    #Option "NoAccel"
    EndSection
    Section "DRI"
    Group "video"
    Mode 0666
    EndSection
    Section "Modes"
    Identifier "Modes[0]"
    Modeline "640x480" 25.20 640 656 752 800 480 490 492 525 -hsync
    -vsync
    ModeLine "1280x1024" 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    DefaultDepth 16
    SubSection "Display"
    Viewport 0 0
    Depth 1
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 4
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 8
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 15
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 16
    Modes "1280x1024" "1024x768" "800x600"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 24
    Modes "1280x1024" "1024x768" "800x600"
    EndSubSection
    EndSection
    glxinfo:
    name of display: :0.0
    display: :0 screen: 0
    direct rendering: Yes
    server glx vendor string: SGI
    server glx version string: 1.2
    server glx extensions:
    GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method,
    GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_hyperpipe,
    GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig, GLX_MESA_copy_sub_buffer
    client glx vendor string: SGI
    client glx version string: 1.4
    client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
    GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control,
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
    GLX version: 1.2
    GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_swap_control,
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_make_current_read,
    GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig
    OpenGL vendor string: VA Linux Systems Inc.
    OpenGL renderer string: Mesa DRI G400 20061030 AGP 4x x86/MMX/SSE2
    OpenGL version string: 1.2 Mesa 6.5.2
    OpenGL extensions:
    GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_texture_compression,
    GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
    GL_ARB_texture_env_crossbar, GL_ARB_texture_rectangle,
    GL_ARB_transpose_matrix, GL_ARB_vertex_program, GL_ARB_window_pos,
    GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_logic_op, GL_EXT_clip_volume_hint,
    GL_EXT_compiled_vertex_array, GL_EXT_copy_texture,
    GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays,
    GL_EXT_packed_pixels, GL_EXT_polygon_offset, GL_EXT_rescale_normal,
    GL_EXT_secondary_color, GL_EXT_separate_specular_color,
    GL_EXT_stencil_wrap, GL_EXT_subtexture, GL_EXT_texture, GL_EXT_texture3D,
    GL_EXT_texture_edge_clamp, GL_EXT_texture_env_add,
    GL_EXT_texture_env_combine, GL_EXT_texture_object,
    GL_EXT_texture_rectangle, GL_EXT_vertex_array, GL_APPLE_packed_pixels,
    GL_ATI_texture_env_combine3, GL_IBM_rasterpos_clip, GL_MESA_ycbcr_texture,
    GL_MESA_window_pos, GL_NV_light_max_exponent, GL_NV_texture_rectangle,
    GL_NV_texgen_reflection, GL_NV_vertex_program, GL_NV_vertex_program1_1,
    GL_OES_read_format, GL_SGIS_generate_mipmap, GL_SGIS_texture_edge_clamp,
    GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays
    visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
    id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
    0x23 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x24 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x25 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x26 16 tc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x27 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x28 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x29 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x2a 16 tc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x2b 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x2c 16 dc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x2d 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x2e 16 dc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x2f 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x30 16 dc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x31 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x32 16 dc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    can anyone please help me?
    Last edited by danielsoft (2008-03-04 16:22:32)

    solved with unofficial drivers http://forum.tuxx-home.at/viewtopic.php?t=153

  • [SOLVED] Odd window manager problem...

    I have installed Arch and a full Gnome DE. However when I start gnome, I get an odd window manager. I tried metacity and metacity --replace in a terminal, but I just get "Window manager warning: Screen 0 on display ":0.0" already has a window manager"
    Here is what it looks like:
    Any way I can get some metacity going?
    Edit: [SOLVED]
    I just put metacity as startup application and restarted. Still not sure what that window manager was, but I'll be okay I guess...
    Last edited by phohammer (2010-03-03 02:59:43)

    sand_man wrote:
    haha you had gnome running with twm as the window manager instead of metacity.
    You need to put 'exec gnome-session' in your .xinitrc file.
    twm huh? Well that's a new one for me!
    I tried to do that but the .xinitrc file didn't exist yet and I wasn't sure if I should make it...I think I tried ~/.xinitrc . Would it be in another directory?

  • Changevol - volume management (good for binding multimedia keys)

    I wrote this script to work with my laptop's multimedia keys. It requires python, pygtk, and alsa-utils. It is a non-interactive program that modifies the volume and then pops up a little gui notifier similar to programs like keytouch (but much simpler and less bloated). It was designed to work by binding multimedia keys (using programs like xbindkeys or any WM's/DE's keybinding apps) to the script and that is probably the only real convenient use.
    Here is what it looks like (pops up in the middle of the desktop on top of everything else). Don't worry about the color of the bar and such, it is programmed with gtk2, so it will inherit whatever your gtk theme looks like:
    Here is the script. To use: just dump into a text file called "changevol", chmod +x it, and put it in the PATH somewhere:
    #!/usr/bin/env python
    import pygtk
    import gtk
    import gobject
    import commands
    import sys
    import os
    import re
    import getopt
    def err(msg):
    print msg
    sys.exit(1)
    def usage():
    print '''
    Usage: changevol [options] [argument]
    Options:
    -i, --increase increase volume by `argument'
    -d, --decrease decrease volume by `argument'
    -c, --control specify the mixer control by `argument' (default Master)
    use only to modify a mixer other than Master
    -t, --toggle toggle mute on and off
    -s, --status display current volume status without modifying it
    -q, --quiet don't display the gtk progressbar, just change the volume
    -b, --backlight adjust the backlight using xbacklight
    -h, --help display this help message
    Note:
    Volume increases and decreases won't be exact due to amixer oddities.
    sys.exit(0)
    class GetVolInfo():
    def __init__(self, command):
    self.amixeroutput = commands.getoutput(command)
    if re.compile("off]$", re.M).search(self.amixeroutput, 1):
    self.realvol = "0"
    self.endlabel = "Mute"
    else:
    self.tempvolarray1 = self.amixeroutput.split("[")
    self.tempvolarray2 = self.tempvolarray1[1].split("%")
    self.realvol = self.tempvolarray2[0]
    self.endlabel = self.realvol + " %"
    self.percent = float(self.realvol)/100
    self.label = "Volume " + self.endlabel
    class ProgressBar:
    def timeout_callback(self):
    gtk.main_quit()
    return False
    def __init__(self, fraction, label):
    self.window = gtk.Window(gtk.WINDOW_POPUP)
    self.window.set_border_width(0)
    self.window.set_default_size(180, -1)
    self.window.set_position(gtk.WIN_POS_CENTER)
    timer = gobject.timeout_add(1000, self.timeout_callback)
    self.bar = gtk.ProgressBar()
    self.bar.set_fraction(fraction)
    self.bar.set_orientation(gtk.PROGRESS_LEFT_TO_RIGHT)
    self.bar.set_text(label)
    self.bar.show()
    self.window.add(self.bar)
    self.window.show()
    #Run through parameters, set variables and such
    CONTROL = "Master"
    AMIXEROPTION = "unset"
    QUIET = "NO"
    BACKLIGHT = "NO"
    if (len(sys.argv) < 2):
    usage()
    try:
    opts, args = getopt.getopt(sys.argv[1:], "bqhtsc:i:d:", ["backlight" "quiet", "help", "toggle", "status", "control=", "increase=", "decrease="])
    except getopt.GetoptError:
    err("Incorrect usage, see changevol --help.")
    if (len(opts) == 0):
    err("Incorrect usage, see --help.")
    for opt, arg in opts:
    if opt in ("-h", "--help"):
    usage()
    elif opt in ("-q", "--quiet"):
    QUIET = "YES"
    elif opt in ("-b", "--backlight"):
    BACKLIGHT = "YES"
    elif opt in ("-t", "--toggle"):
    AMIXEROPTION = "toggle"
    elif opt in ("-s", "--status"):
    INCREMENT = "0"
    AMIXEROPTION = INCREMENT + "%+"
    elif opt in ("-c", "--control"):
    CONTROL = arg
    elif opt in ("-i", "--increase"):
    INCREMENT = arg
    AMIXEROPTION = INCREMENT + "%+"
    elif opt in ("-d", "--decrease"):
    INCREMENT = arg
    AMIXEROPTION = INCREMENT + "%-"
    else:
    err("Incorrect usage, see --help")
    if (AMIXEROPTION == "unset"):
    err("No volume changing action has been dictated. See changevol --help.")
    command = "amixer set " + CONTROL + " " + AMIXEROPTION
    #Execution
    volume = GetVolInfo(command)
    if (QUIET == "NO"):
    ProgressBar(volume.percent, volume.label)
    gtk.main()
    if (BACKLIGHT == "YES"):
    os.execv('/usr/bin/xbacklight', ['placeholder', '-set', volume.realvol])
    Here is the usage synopsis (it can be accessed with changevol --help):
    Usage: changevol [options] [argument]
    Options:
      -i, --increase  increase volume by `argument'
      -d, --decrease  decrease volume by `argument'
      -c, --control   specify the mixer control by `argument' (default Master)
                      use only to modify a mixer other than Master
      -t, --toggle    toggle mute on and off
      -s, --status    display current volume status without modifying it
      -q, --quiet     don't display the gtk progressbar, just change the volume
      -b, --backlight adjust the backlight using xbacklight
      -h, --help      display this help message
    Note:
      Volume increases and decreases won't be exact due to amixer oddities.
    Edit: Changed mute handling a bit.
    Edit2: Added a -c, --control option for an amixer interface other than Master
    Edit3: Added a -s, --status option to just display the current volume status without modifying it
    Edit4: Added a -q, --quiet option to not show the progress bar and just change the volume
    Edit5: Added a -b, --backlight option to adjust the backlight along with the volume change (someone asked for it, so why the hell not right?)
    Last edited by bruenig (2008-02-03 06:43:07)

    ralvez wrote:I gave it a spin but every time I get the same answer: "No volume changing action has been dictated."
    Can you provide an example of issuing the command using xbindkeys? or even what I should be issuing on the command line? I must be doing something wrong ... and I do not feel like studying the code to figure it out since you can give me the answer just as fast
    The usage synopsis is in the first post or available by just doing "changevol" or changevol -h|--help.
    But to increase the volume by 5:
    changevol -i 5
    To decrease the volume by 5:
    changevol -d 5
    To toggle mute on and off:
    changevol -t
    If you need to specify a mixer other than "Master" which is the default mixer, you use the -c flag, so say you needed to use the mixer "Front" to increase by 5:
    changevol -c Front -i 5
    I see there is a problem in the code where it says No volume changing action has been dictated when I want it to say Incorrect usage, see changevol --help. I will try to fix that. Still learning python.
    Edit: I have changed it to see if getopts returns no options and then if so print back the Incorrect usage error message. That should do a lot to direct people to the right, direction. I have also, changed the No volume changing action one, to also direct to --help.
    Last edited by bruenig (2007-12-31 03:27:37)

  • [Solved]Cannot execute i3 window manager

    I installed i3 tiling window manager along with kde(kde could be executed),and follow the step written in i3's wiki:
    Edit ~/.xinitrc and add:
    exec i3
    exec i3 -V >>~/.i3/i3log >&1
    and cp /etc/i3/config ~/.i3/config,after these steps I still cannot execute i3 wm, could anyone tell me what I missed?
    appreciate your reply.
    Last edited by tomisacat (2012-07-20 05:14:29)

    hesse wrote:
    tomisacat wrote:
    I installed i3 tiling window manager along with kde(kde could be executed),and follow the step written in i3's wiki:
    Edit ~/.xinitrc and add:
    exec i3
    exec i3 -V >>~/.i3/i3log >&1
    You should add just one of the above exec statements by the way, and it should be on the last line in ~/.xinitrc. The second line is preferred if you want to log messages from i3 while it's running. To start a window manager manually from a console use
    xinit /full/path/to/i3
    Thank you,it seems worked.

  • [Solved] systemd/user : how to exit window manager & stop X?

    Solution: Jump to https://bbs.archlinux.org/viewtopic.php … 6#p1262166
    I have set up my system to user systemd units to start my environment (roughly following the wiki).
    My problem is that I cannot exit my window manager (using “io (exitWith ExitSuccess)” in Xmonad): the service file starting the WM (xmonad) stops/exits with success, but the xorg.service keeps
    running. I need to switch to TTY2, systemctl --user stop xorg.service by hand, then switch to TTY1, execute Ctrl-C, and then I finally get my login
    prompt back.
    This is a bit annoying, and I don't know how to fix it.
    Here are the relevant (I think) unit files:
    # xmonad.target
    [Unit]
    Description=XMonad
    Wants=xorg.target
    Wants=xinit.target
    Requires=dbus.socket
    AllowIsolate=true
    [Install]
    Alias=default.target
    # xmonad.service
    [Unit]
    Description=Starts Xmonad
    Before=xinitrc.target
    After=xorg.target
    Requires=xorg.target
    [Service]
    ExecStart=/usr/bin/xmonad
    Environment=DISPLAY=:0
    Restart=no
    [Install]
    WantedBy=xmonad.target
    RequiredBy=xorg.service
    As you can see, I have added the RequiredBy=xorg.service line at the bottom, hoping that if xmonad.service exits, so should xorg.service - but to
    no avail.
    What do I have to do in order to completely stop X and get my login prompt on TTY1 back?
    EDIT: I am of course using the user-session-units.
    Last edited by Stalafin (2013-04-22 13:54:45)

    I know it's an old thread (not really old) but I have the same problem. The question is your solution doesnt work with me. It just give me an error like this:
    Failed to issue method call: The name org.freedesktop.login1 was not provided by any .service files
    Failed to issue method call: Process /bin/false exited with status 1

  • [SOLVED] Mouse-friendly dwm window manager?

    Dear all,
    I use the dwm window manager (version 6.0). I think I remember that some time ago in the suckless website
    there was some part where they presented some configuration for extended mouse support. Not sure if I
    recall correctly but, in any case, I can't find something like this any more.
    Does anybody have any hints on that? Any links or advice regarding extended mouse support for dwm?
    Thanks in advance..
    Last edited by geo909 (2012-04-23 19:52:45)

    Unia wrote:
    What exactly is it you think is 'extended'? DWM supports the mouse as much as any other tiler, ie you can move windows with the mouse. There's also the tilemovemouse patch/extension that I think (never used it myself) lets you move tiled windows with the mouse. Find it here:
    https://github.com/ok100/dwm/blob/maste … ovemouse.c
    wolfcore wrote:Well for starters you can customize the button definitions in config.h...
    Thanks! The tilemovemouse patch will definitely help.. And I realize I wasn't clear enough
    when I was saying 'extended'.
    I eventually found many of the things that I was looking for here:
    http://dwm.suckless.org/customisation/customfuncs
    and that helped me understand better how the config.h works..
    I think some customization along with the tilemovemouse patch
    would be pretty complete for me..
    Last edited by geo909 (2012-04-23 19:52:32)

Maybe you are looking for

  • How can i force my E70 to use voise dialing !!!

    actualy just got this phone.. perfect staff, but... voice dialing dosent work at all !!!. I have broused a lot of discussions and forums but didnt find DIRECT answer. So, first: is i dont see any Option->Playback in the menu in the contact cards.. no

  • How can I build automatically jar with Eclipse?

    Hi, I try to build automatically jar file each time when I save my project.Until now I used right click and Export to jar but that take me more time and it is not efficiently.I have try to configure an new builder from project->properties-> builders

  • Acrobat XI uninstalled, can't reinstall

    I am a Creative Cloud Customer on a Mac OS X 10.9.  I was receiving a "Trial Expired" message while running Acrobat XI for some strange reason.  While trying to troubleshoot this, I uninstalled Acrobat XI, hoping to reinstall. Like many others who ha

  • Connect Ipod to Itunes Message

    My ipod's battery died on me while I was on vacation about 3 days ago. At the time I had no means of charging it, but when I returned home I attempted to charge it on my PS3 (I have done this many times and it usually works fine). When I turned my ip

  • Ac Pro 7 ..create on XP, won't open on Mac

    Created .pdf by scan on Acrobat Pro 7 (XP), emailed to a friend with a Mac. Won't open on the Mac. Tried it twice using different email systems and servers. He emails it back, and it opens fine on my end (so it's not corrupted). If I create the .pdf