[SOLVED] conditional xrandr command in .xinitrc

Hi,
I've got a 1366x768 laptop screen and a 1280x1024 external monitor hooked up via VGA. When I start awesome WM, my VGA one isn't recognized automatically, so I've added the following to my .xinitrc:
xrandr --output VGA1 --mode 1280x1024
There are two inelegant but rather harmless things about this solution: when my external monitor is not hooked up, I get a minor error in tty1 (no big deal); and when my external monitor is hooked up and my laptop lid is closed, it's a blank screen (not a huge deal, but I'd prefer it be off completely).
What I would rather have in my .xinitrc is something like:
if VGA1 is present, then do
xrandr --output VGA1 --mode 1280x1024
xrandr --output LVDS1 --off
else do nothing
But I'm not sure how to implement the "if" clause.
Until now, this wasn't necessary... but now that I've changed the default awesome wallpaper, two wallpapers of different sizes show up, one on top the other, when I start X. To remove the smaller one, I need to turn off LVDS1 (laptop output).
Thanks to anyone who can help!
Last edited by brianb (2012-02-17 03:25:41)

In that case my simple approach would need to be ammended a bit (awk or sed in place of grep), but I've never seen the disconnected lines on any of my systems.  I wonder where the difference comes from.  BrianB, if you do not get the disconnected listings, my shorthand should work, as long as you know it may be a shortcut that may someday 'break'.
I've been using the grep test for quite some time though.
if [[ "$(xrandr | awk '/^VGA/ { print \$2 }')" == "connected" ]]; then
Should work for the more complex case, though the escaping of the '$' may need improvement, I haven't tested this version.
Last edited by Trilby (2012-02-17 03:02:42)

Similar Messages

  • [SLiM] Execute xrandr commands on startup

    Okay, so here's the issue. I've got Nvidia optimus drivers to work. I can successfully get into my session with startx.
    But to make it work, I need to put two xrandr commands in my .xinitrc file. Therefore, it doesn't do anything for my login manager.
    How can I make this work with my login manager? This is my .xinitrc file:
    #!/bin/bash
    xrandr --setprovideroutputsource modesetting NVIDIA-0
    xrandr --auto
    Without these lines, I just get a black screen. I can't find any solution yet.

    GloW_on_dub wrote:Can you post you're whole .xinitrc?
    #!/bin/bash
    xrandr --setprovideroutputsource modesetting NVIDIA-0
    xrandr --auto
    exec awesome
    That's my whole .xinitrc file.
    I'm not trying to figure out how to run this when I log in. I'm trying to figure out how to run the xrandr commands when SLiM starts up X to display the log in manager.
    Last edited by Slabity (2014-01-23 02:31:33)

  • Command in .xinitrc not being executed? [SOLVED]

    Hi!
    I made some changes to my keyboard layout so I can use my hotkeys.
    When I start x I need to execute the command
    xmodmap ~/xmodmap.conf
    I added this in my .xinitrc file to be executed, but it does not work.
    When I run it from cli it works great.
    Suggestions?
    Thanks!

    phrakture wrote:
    are you using startx or xdm?
    I start x using kdm:
    My inittab says:
    id:5:initdefault:
    and
    x:5:respawn:/opt/kde/bin/kdm -nodaemon
    So do I execute xinitrc?
    Thanks for all the help sofar!
    :twisted:

  • Intel Graphics and xrandr commands at startup

    Hi all, I am new at Arch.  I'm trying to setup a P4 computer as a media player.  It is hooked up to 40" LCD panel.  The computer has Intel 845 graphics and no open PCI slots, so I am stuck with using the onboard graphics for the resolution I want.  I was able to do this with Ubuntu/Gnome by adding these lines to /etc/gdm/init.d/default
    xrandr --newmode "1920x1080" 148.5 1920 2008 2052 2200 1080 1089 1095 1125 +hsync +vsync
    xrandr --addmode VGA1 1920x1080
    xrandr --output VGA1 --mode  1920x1080
    That solved the problem, I got a great picture but the OS with Gnome was hogging all my memory.  I've tried lighter distros but, if I run this as an executable script after the window manager loads, the screen doesn't render properly.  I've only been able to get Gnome or XFCE to work properly.  With XFCE, I ran it as a shell script in the autostart applications.
    My question is, where is the best place to run these commands in the Arch startup sequence?  If I get this to run at the proper time, should I be able to use LXDE or E17?

    karol wrote:@ thestinger
    I think Intel drivers need KMS and KMS doesn't like video= or vga= options in the kernel line.
    The video= option is kernel mode setting, you can use it to do stuff like really disable the LCD on a laptop when you're using an external monitor - xrandr only works in Xorg and the connector will probably still be powered on.
    You can use video= to use a framebuffer (similar to vga=), and that would probably break any KMS driver because you're trying to use two at once.
    Best source a quick google can find (go down to forcing modes):
    http://nouveau.freedesktop.org/wiki/KernelModeSetting
    Last edited by thestinger (2010-12-13 01:19:49)

  • [SOLVED] openbox menu command doesn't work with &&

    I'm now using openbox-session only.
    I'd like to run a program after something was done correctly:
    zenity --question && killall openbox
    I used "obmenu" and it seems that it fixes & to & correctly in the menu.xml.
    However, the previous command "zenity" is run only.
    In terminal, there's no problem, but it doesn't work with "command" in openbox menu.
    <item label="Exit">
    <action name="Execute">
    <execute>
    zenity --question --title="Exit" --text="Are you sure to go back to console?" && killall openbox
    </execute>
    </action>
    </item>
    Please, give me any idea. Thank you.
    Last edited by mairoo (2009-09-09 10:06:17)

    hbekel wrote:
    You'll need to use a shell explicitly:
    <execute>
    sh -c 'command1 && command2'
    </execute>
    I flagged "solved" thanks to your help. It works good. Thank you.

  • How to Conditionally Render Command link within af:forEach

    Hi,
    We have a requirement to conditionally Display/Hide CommandLink item in af:forEach Loop.And this customization is on the Fusion Compensation applications
    <af:forEach items="#{bindings.RegionalAreaPVO.rangeSet}" var="parent">
    <af:spacer height="10" id="s1"/>
    <af:commandLink inlineStyle="font-weight:bold;" text="#{parent.ItemName}" partialSubmit="true" actionListener="#{backingBeanScope.RegionalAreaBean.launchTaskflow}" id="cl1" rendered="#{backingBeanScope.XXWFCRegionalAreaBean.modelEligibleflag eq true}">
    <af:setActionListener from="#{parent.Code}" to="#{parentNode}"/>
    </af:commandLink>
    </af:forEach>
    I have added a Cutom Managed Bean Class and Returning boolean value to Control Render property which is working. But now i want to add business Logic based on 'parent.ItemName' or 'parentNode' Values in the bean method to return proper Boolean value.
    But i am unable to get the Current Iteration values in the bean method.
    I am using below EL expressions to get the values. But no luck.
    String nameel = (String)ADFUtil.evaluateEL("#{bindings.parent.ItemName}");
    String codeel = (String)ADFUtil.evaluateEL("#{parent.Code}");
    String nodeEl = (String)ADFUtil.evaluateEL("#{parentNode}");
    Also, i have tried getting the Row object like below but i am getting the First row details always. My intention is to get Current row values and use them for Business logic.
    ViewRowImpl row =
    (ViewRowImpl)ADFUtil.evaluateEL("#{bindings." + VoName +
    "Iterator.currentRow}");
    String code = (String)row.getAttribute("Code");
    Third option i have tried is to add a dummy Outputtext and have assigned #parent.Code as Value. Idea is to find Component of OutPut text in managed Bean and get the value of it. If Value is say "Model" i want to add more Logic and return true/false accordingly. In this also, i am getting all occurences of Output text in Managed bean and i a unable to identify Current Iterator Index.
    Any help is highly appreciated on how can i render Command link Conditionally based on forEach Loop values and Index.
    Thanks
    Kaja

    I have used Condition expression in Render Property to resolve this.

  • [SOLVED] python-efl: command 'gcc' failed with exit status 1

    Hi everyone! I'm running an x86_64 system with Enlightenment. I'm trying to install econnman from source to have a simpler life trying to connect to my University's wifi network. However, it misses the python-efl dependency. I downloaded it from the AUR, but I get the error message "error: command 'gcc' failed with exit status 1"  when running 'python setup.py build'. This is the complete terminology output:
    [dude@susan python-efl-1.8.0]$ sudo python setup.py build
    Checking for Eina: OK, found 1.11.2
    Checking for Eo: OK, found 1.11.2
    Checking for Evas: OK, found 1.11.2
    Checking for Ecore: OK, found 1.11.2
    Checking for EcoreFile: OK, found 1.11.2
    Checking for Edje: OK, found 1.11.2
    Checking for Emotion: OK, found 1.11.2
    Checking for DBus: OK, found 1.2.0
    Checking for Elementary: OK, found 1.11.2
    running build
    running build_py
    creating build/lib.linux-x86_64-3.4/e_dbus
    copying compat/e_dbus/__init__.py -> build/lib.linux-x86_64-3.4/e_dbus
    running build_ext
    building 'eo' extension
    gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -DEFL_BETA_API_SUPPORT -Iinclude/ -I/usr/include/python3.4m -c efl/eo/efl.eo.c -o build/temp.linux-x86_64-3.4/efl/eo/efl.eo.o -I/usr/include/efl-1 -I/usr/include/eo-1 -I/usr/include/efl-1 -I/usr/include/eina-1 -I/usr/include/eina-1/eina
    efl/eo/efl.eo.c: In function ‘__pyx_pf_3efl_2eo_4event_global_freeze_get’:
    efl/eo/efl.eo.c:1127:3: warning: implicit declaration of function ‘eo_event_global_freeze_get’ [-Wimplicit-function-declaration]
    eo_do(((const Eo *)eo_base_class_get()), eo_event_global_freeze_get((&__pyx_v_fcount)));
    ^
    efl/eo/efl.eo.c: In function ‘__pyx_f_3efl_2eo_object_from_instance’:
    efl/eo/efl.eo.c:1445:3: warning: implicit declaration of function ‘eo_base_data_get’ [-Wimplicit-function-declaration]
    eo_do(__pyx_v_obj, eo_base_data_get(__pyx_k_5, (&__pyx_v_data)));
    ^
    efl/eo/efl.eo.c: In function ‘__pyx_f_3efl_2eo__eo_event_del_cb’:
    efl/eo/efl.eo.c:2050:3: warning: implicit declaration of function ‘eo_base_data_del’ [-Wimplicit-function-declaration]
    eo_do(__pyx_v_self->obj, eo_base_data_del(__pyx_k_5));
    ^
    In file included from efl/eo/efl.eo.c:317:0:
    efl/eo/efl.eo.c: In function ‘__pyx_pf_3efl_2eo_2Eo_4__repr__’:
    efl/eo/efl.eo.c:2286:30: error: too many arguments to function ‘eo_parent_get’
    eo_do(__pyx_v_self->obj, eo_parent_get((&__pyx_v_parent)));
    ^
    /usr/include/eo-1/Eo.h:588:8: note: in definition of macro ‘_eo_do_common’
    __VA_ARGS__; \
    ^
    efl/eo/efl.eo.c:2286:5: note: in expansion of macro ‘eo_do’
    eo_do(__pyx_v_self->obj, eo_parent_get((&__pyx_v_parent)));
    ^
    In file included from /usr/include/eo-1/Eo.h:1112:0,
    from efl/eo/efl.eo.c:317:
    /usr/include/eo-1/eo_base.eo.h:37:12: note: declared here
    EOAPI Eo * eo_parent_get(void);
    ^
    efl/eo/efl.eo.c: In function ‘__pyx_f_3efl_2eo_2Eo__set_obj’:
    efl/eo/efl.eo.c:2496:3: warning: implicit declaration of function ‘eo_base_data_set’ [-Wimplicit-function-declaration]
    eo_do(__pyx_v_self->obj, eo_base_data_set(__pyx_k_5, ((void *)__pyx_v_self), NULL));
    ^
    In file included from efl/eo/efl.eo.c:317:0:
    efl/eo/efl.eo.c: In function ‘__pyx_pf_3efl_2eo_2Eo_14parent_get’:
    efl/eo/efl.eo.c:2963:28: error: too many arguments to function ‘eo_parent_get’
    eo_do(__pyx_v_self->obj, eo_parent_get((&__pyx_v_parent)));
    ^
    /usr/include/eo-1/Eo.h:588:8: note: in definition of macro ‘_eo_do_common’
    __VA_ARGS__; \
    ^
    efl/eo/efl.eo.c:2963:3: note: in expansion of macro ‘eo_do’
    eo_do(__pyx_v_self->obj, eo_parent_get((&__pyx_v_parent)));
    ^
    In file included from /usr/include/eo-1/Eo.h:1112:0,
    from efl/eo/efl.eo.c:317:
    /usr/include/eo-1/eo_base.eo.h:37:12: note: declared here
    EOAPI Eo * eo_parent_get(void);
    ^
    efl/eo/efl.eo.c: In function ‘__pyx_pf_3efl_2eo_2Eo_20event_freeze_get’:
    efl/eo/efl.eo.c:3104:3: warning: implicit declaration of function ‘eo_event_freeze_get’ [-Wimplicit-function-declaration]
    eo_do(__pyx_v_self->obj, eo_event_freeze_get((&__pyx_v_fcount)));
    ^
    error: command 'gcc' failed with exit status 1
    Can anyone help me? Please tell me every output you need. Thanks and a good day to you, sir!
    Last edited by HisDudeness (2014-10-02 08:47:15)

    You know what? You're right!
    I don't know how I exactly got that version... I got back to the AUR and downloaded the new one. The strange thing is, while that old version's tar.gz conained a lot of files like I'd expect from a source archive, the current version only contained the files .AURINFO and PKGBUILD. Guess that's the way it should be, I'm new to all of this so I was initially surprised. Obviously, running makepkg here worked like a charm and downloaded everything that was needed for it to install. Then, econnman installed just fine too. What I can't explain to myself is why 1.8.0's tar.gz contained all those files.
    In the end, I couldn't use nor connman cli nor econnman to connect to my Campus' WiFi but, after a lot of trouble, I got it to work with dhclient and wpa_supplicant like it's suggested. This hasn't been useless anyway, I saw how to install from the AUR for the first time.
    I'll mark the post as solved, but I got one last question: provided I don't need econnman anymore, do you suggest me to keep python-efl or to remove it? Is it needed for something else I'll certainly run into in the future?

  • [SOLVED] Run xrandr on ever startx

    I'm currently attempting a dual monitor setup and I have found that the best fix for my setup is to run:
    xrandr --output DVI-1 --auto --right-of DVI-0
    What I am trying to do is run this after I run startx but it never seems to work out. I have tried placing it in .xinitrc, here is what that looks like:
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    exec startxfce4
    xrandr --output DVI-1 --auto --right-of DVI-0
    Any suggestions would be greatly appreciated.
    Thanks
    Last edited by threePhase (2010-08-25 07:59:42)

    Well I'm fairly certain I have everything in correct working order. Here is my 10-monitor:
    Section "Device"
    Identifier "ATI Technologies HD 2600XT"
    Driver "radeon"
    #Option "Monitor-DVI-0" "Monitor0"
    #Option "Monitor-DVI-1" "Monitor1"
    EndSection
    Section "Monitor"
    Identifier "DVI-0"
    Option "DPMS" "true"
    EndSection
    Section "Monitor"
    Identifier "DVI-1"
    # DisplaySize 708 398 #In millimeters
    Option "DPMS" "true"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "ATI Technologies HD 2600XT"
    Monitor "DVI-0"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Modes "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "640x480" "720x400"
    # ADD A VIRTUAL LINE TO PROVIDE FOR THE LARGEST SCREENS YOU WILL HOTPLUG
    Virtual 2560 2560
    EndSubSection
    EndSection
    Section "Screen"
    Identifier "Screen1"
    Device "ATI Technologies HD 2600XT"
    Monitor "DVI-1"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Modes "1280x720" "1920x1080" "720x480" "640x480"
    # ADD A VIRTUAL LINE TO PROVIDE FOR THE LARGEST SCREENS YOU WILL HOTPLUG
    Virtual 2560 2560
    EndSubSection
    EndSection
    Section "ServerLayout"
    Identifier "DualScreen"
    Screen 0 "Screen0"
    Screen 1 "Screen1" RightOf "Screen0"
    EndSection
    And here is the output from xrandr:
    Screen 0: minimum 320 x 200, current 2560 x 1024, maximum 8192 x 8192
    DVI-0 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 375mm x 301mm
    1280x1024 60.0*+ 75.0
    1280x960 75.0 70.0 60.0
    1152x864 75.0 70.0 60.0
    1024x768 75.1 70.1 60.0
    832x624 74.6
    800x600 72.2 75.0 60.3 56.2
    640x480 72.8 75.0 66.7 60.0
    720x400 70.1
    DIN disconnected (normal left inverted right x axis y axis)
    DVI-1 connected 1280x720+1280+0 (normal left inverted right x axis y axis) 1600mm x 900mm
    1280x720 60.0*+
    1920x1080 60.0
    720x480 59.9
    640x480 60.0
    Last edited by threePhase (2010-08-23 09:36:16)

  • [SOLVED] Why some commands run properly in startup script others don't

    I am trying to finish setting up my MythTV box. I have the following commands to run at startup:
    #!/bin/sh
    # Stop spamming dmesg
    echo -n 0000:00:06.1 > /sys/bus/pci/drivers/ehci_hcd/unbind
    # Enable wake from remote
    echo enabled > /sys/bus/usb/devices/4-5/power/wakeup
    # Link optical drive to /dev/dvd (needed for myth)
    if [ ! -e /dev/dvd ]; then ln -s /dev/cdrom /dev/dvd; fi
    # Start LIRC
    echo lirc > /sys/class/rc/rc0/protocols
    ln -sf /run/lirc/lircd /dev/lircd
    lircd -d /dev/lirc0 /etc/lirc/hipermc
    # Start mythbackend
    mythbackend &
    # Start LCD server
    LCDd &
    I have tried making this part of rc.local and also as a startup item in XFCE (with script called using passwordless sudo since it requires root permissions). In each case, only some of the commands run properly (the dmesg, wake from remote, and start LIRC sections). The other commands don't seem to work. However if I run the script manually after the computer has finished booting, everything works perfectly. Can anyone help me figure out what's going wrong?
    It seems like path is already set since some commands do work without the full pathname. Also please don't suggest using systemd for starting the daemons - it does not work for me with LIRC or lcdproc and there is a driver bug with my hardware that keeps me from using the mythbackend systemd service.
    Thanks in advance for the help.
    Last edited by mosquitogang201 (2012-12-16 14:42:11)

    The exec command was what I needed. Was able to follow the error messages to find out the command im using under "stop spamming dmesg" was messing everything else up. Also I am running systemd - just not using it to start these items since the systemd service files weren't working reliably.
    Anyways this brings me to another question - is there a more elegant way to stop dmesg from getting spammed? About 5 times per second I get the error
    hub 2-4:1.0: unable to enumerate USB device on port 3
    which makes it very difficult to look through dmesg logs to find an actual problem.
    EDIT: Just needed to add the sleep command after the dmesg section to give the kernel enough time to reload using ohci_hcd. Now script is working perfectly. Marking as SOLVED.
    Last edited by mosquitogang201 (2012-12-16 14:48:47)

  • [solved] Running a command in background (bash script)

    Salut,
    as netcfg2 does not work with my wireless connection, I have to set up the connection manually. For not having to type in the commands every time, I created a bash script.
    #!/bin/bash
    iwconfig wlan0 mode managed essid mynetwork channel 6
    ifconfig wlan0 up
    wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant.conf -dddd &
    dhcpd wlan0
    This works fine till the wpa_supplicant line. wpa_supplicant is not started in the background (as I thought, the ampersand at the end of the line would.
    So how can I get wpa_supplicant run in the background?
    Thanks in advance,
    Stefan
    Last edited by vbtricks (2008-05-11 09:13:36)

    Ramses de Norre wrote:How do you know it isn't? What exactly does happen?
    The script does not return to the user-prompt. Is an ampersand at the end of the line the correct solution, or are you unsure yourself?
    bender02 wrote:On thing is that even if it starts, it does take it a couple of seconds to connect, so it's probably not very good to run dhcpcd right after wpa_supplicant. Another thing is that you probably have a typo up there, shouldn't it be 'dhcpcd' instead of 'dhcpd'?
    Well, as the wpa_supplication command is not really run in the background the script did never execute the dhcpcd command. After having solved the above, correcting the spell-mistake will be a smaller problem. Even calling the dhcpcd command myself would be no unworkable way, the open root-shell (as I have to use another as the one calling the script is blocked) is a far greater problem...

  • *PROBLEM SOLVED: Using "java" command in JSDK1.4.1

    I had a problem before when using the java command for JSDK1.4.1
    What I just realised/found was that there different situations
    for using the "java" command. I will give you some tips in
    case you are running in the same problem or may be to help
    another person:
    RUNNIN FILES (.java) THAT ARE "NOT" PART OF A PACKAGE
    1)Let's say you have a "test.java" file in "C:\APP\SUB\"
    2)You can compile it from iside or outside the folder that
    holds the "test.java" (i.e. SUB)
    3)After compiled, you can ONLY run the "test.class" file
    from within the folder that holds the CLASS file i.e. "SUB"
    You can not be at the "APP" folder and type:
    "java SUB.test" NOR "java SUB/test"
    RUNNING FILES (.JAVA) THAT ARE PART OF A PACKAGE
    1)Let's say you have a "test.java" file in "C:\APP\SUB\COM\"
    2)Now let's say that the fiel includes the "package SUB.COM;" line
    in the code, which makes it part of a package.
    COMPILING
    3)If the "test.java" file does NOT use another file in the same
    folder, you can compile it from where ever you want. It could
    be from within inside OR outside the folder holding the file
    4)If the "test.java" file DOES use another file in the same folder,
    then you have to go "javac" it from any folder aoutside the
    folder that is hosting (holding) the "test.java" file
    EXMAPLE:
    If am in folder "APP" I can do this: "javac SUB/COM/test.java"
    Or if am in "SUB" I can do: "javac COM/test.java"
    BUT if Im in "COM" I can NOT do: "javac test.java"
    RUNNING
    5)Make sure that you have produced a "test.class" file when compiling
    6)Recall that the "test.java" file includes the line "package SUB.COM;"
    which means that it is part of this package. and that it is stored
    inside "COM"
    7)You can ONLY run the "test.class" file from the FIRST folder above
    the package where that the "test.class" file is forming part of
    i.e from inside the "APP" folder, You CAN NOT run the file from
    anywhere else but the first folder (APP) above the package (SUB.COM)
    8)EXAMPLE:
    To run the "test.class" I must be in: "C:\APP"
    I can NOT be in "C:\" nor "C:\APP\SUB" nor "C:\APP\SUB\COM"
    Then type in the command window: "java SUB.COM.test" and..
    *** ESO ES TODO AMIGOS!! **** (THAT'S ALL FOLKS)
    I hope this help to other people.. some factors like enviromental
    variable may change what I just stated though.
    In my computer runnning "Windows 2000" my variables are:
    1)JAVA_HOME: C:\j2sdk1.4.1
    2)path: <other paths>;C:\j2sdk1.4.1\bin;
    THANK U FOR ALL THE PEOPLE WHO WERE TRYING TO HELP ME SINCE YESTERDAY
    my email: [email protected]

    Yeah, he did get a lot of it wrong but oh well, at least he's putting forth some effort. If you need any help alex, just send me a note. Everyone should also look into using Jakarta Ant for even your simple applications, it makes all these little directory issues go away real fast. If you need a generic build.xml file that has nice features, again, just send me a note.
    -Spinoza

  • Pivot: xrandr command with nvidia driver

    I'd like to set the pivot mode 1024x1280 automatically. At the presend I have to set
    sudo xrandr -o left manually.
    I'm using the proprietary Nvidia driver (nvidia-ck-kx-302.17-3)
    Where do I have to write down the xrandr settings?

    Thanks. According to http://us.download.nvidia.com/XFree86/L … tions.html
    I have tried Option "RandRRotation" "left"
    According to your reference it should be DFP-0: nvidia-auto-select { Rotation=left }.
    But how does the xorg.conf have to look like?
    a.)
    Section "Device"
       Option "Rotate" "left"
    EndSection
    b.)
    Section "Device"
       DFP-0: nvidia-auto-select { Rotation=left }
    EndSection
    or how does the xorg.conf has to look like?

  • [SOLVED] troubleshooting midnight commander

    Hello,
    I am trying to have .doc files opened in word (through wine) when I hit ENTER on the file in midnight commander (mc). However, when I hit ENTER, the screen briefly flashes, then nothing happens. Somewhere I read that if you hit M-! then you can see the output of your command so I tried that to see what exactly mc is calling when I hit ENTER, but for some reason M-! just pulls up a filter view.
    Anyone know how to figure out what command mc is executing when I hit ENTER on a .doc file, or any other means of troubleshooting/logging events in mc so I can figure out where my problem is or something is not working?
    Last edited by awayand (2011-07-30 04:49:39)

    Sounds like you need to edit the /etc/mc/mc.ext file so that it knows what to open and where when it sees a .doc file.
    Better still copy that mc.ext file to your ~/.mc directory and work on it there.

  • [solved] Gnome - unlocking keyring via xinitrc

    Hi guys,
    I am not using a login manager but launch gnome via xinitrc. As such my keyring does not get unlocked automatically and Chromium asks me to unlock the keyring every time.
    I though of adding the following to xinitrc but that did not the trick.
    Is it overall possible to unlock the keyring using a manual start?
    [orschiro@thinkpad ~]$ cat .xinitrc
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
    done
    unset f
    fi
    # exec gnome-session
    # exec startkde
    # exec startxfce4
    # ...or the Window Manager of your choice
    # Start GNOME Keyring
    eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
    # You probably need to do this too:
    export SSH_AUTH_SOCK
    export GPG_AGENT_INFO
    export GNOME_KEYRING_CONTROL
    export GNOME_KEYRING_PID
    exec gnome-session-cinnamon
    Last edited by orschiro (2013-06-23 05:43:45)

    I digged into this another time and now there is a working solution which is working if the user password equals the keyring password.
    It is described further in the wiki: https://wiki.archlinux.org/index.php/GN … at_Startup
    There is nothing to be added to the ~/.xinitrc.

  • [solved] Which Pacman commands can be passed to makepkg

    Hi all!  I'm a very big fan of Alan's work and his blog has kept me entertained for quite some time now.  Regarding package management, specifically how to "try-before-you-buy" packages from AUR or ABS, he wrote:
    One way I have found to keep track of packages you want to temporarily install is to have a sort of secondary
    package management system within the main pacman database. This is achieved through abuse of the dependency
    tracking features of pacman. Any package that is to be installed for a temporary period get installed with the --
    asdep flag. This tells pacman that the package is a dependency. Given no other package depends on it, it is what is
    commonly referred to as an "orphan" package and can be listed using pacman -Qtd. Currently on my system I have:
    $ pacman -Qtd
    gimp 2.6.11-6
    vlc 1.1.10-6
    When I no longer want these packages on my system, they will be uninstalled in the standard way (pacman -Rs pkg).
    If I decide to keep the package, I can change the pacman database entry using the little known -D/--database flag.
    E.g. pacman -D --asexplicit vlc will change the install reason for the vlc package from being "Installed as a
    dependency for another package" to "Explicitly installed". It will no longer be listed as an orphan, effectively
    taking it out of this secondary pacman management system inserting it into the main one.
    I began to use this method of package management after I read this on his blog.  It makes sense and it works well.  However, I want to know if the only flags I can pass to Pacman while building apps are:
    --asdeps
    --noconfirm
    --needed
    The wiki, though, doesn't say anything about the useage of other pacman flags. 
    My question is:  can I pass arbitrary flags to Pacman while building an app using a PKGBUILD?  E.G. can I pass makepkg the "--asexplicit" flag if I want to do the opposite of Alan's idea and install something as an explicit package?  Are apps compiled through "makepkg" installed and flagged by Pacman by default "--asexplicit?"
    [edit]: Marked solved and gave a better subject line for future searchers.
    Last edited by MoonSwan (2014-07-22 21:26:03)

    I think you really need to clarify your question.  You can't pass pacman any flags while building 'apps' - pacman doesn't build packages, makepkg does.
    If you want to know what flags you can pass to pacman when installing a package, read the man page.
    The makepkg man page will also tell you which flags can be passed to pacman when using the -i flag.

Maybe you are looking for

  • Windows 7 Runtime Error Microsoft Visual C + +

    When i turn on my computer and let everything load, i get a message saying, Runtime Error. I didnt pay much attention to it until yesterday. I  tried channging the password on my desktop. When i clicked "change your windows password" absolutely nothi

  • Scale and Crop in slideshow not working

    I put together 2 slideshows with music and used the pan and zoom feature. Unfortunately, when i select scale and crop for the images, its still showing black bars instead of filling the screen.  The images vary in size and rotatin but they are all hi

  • Z22-Everything Went Wrong

    I bought a Palm z22 and tried to install it on my Pavillion running Vista Home Edition 64-bit.  No drivers available for the 64-bit machines.  I contacted the Palm chat technicians and they told me "Most users use 32 bit vista operating system and Pa

  • Posting MIRO before MIGO

    Dear Experts, When a PO is raised for 100no's with each piece costing 10. Before posting a MIGO a MIRO is posted for 50 no's for 600. Then the MIGO is posted for 100 no's. what price will be taken at the time of MIGO? what account get generated when

  • Flash goes off when receiving texts

    Another thing I have noticed - sometimes when I receive a text, the camera flash goes off Anyone else have this issue? Martinfrommaldon