Systemd as user, dual monitor, awesome, popups (long desc inside)?

Okay, this is quite difficult to describe, so please bear with me.
I run systemd as user and awesomewm on a laptop which is normally plugged in to an external monitor for a dual screen. 64-bit Arch, fully updated, running [testing]
I've got my own homebrew script which basically just runs the appropriate xrandr command to enable all the current connected monitors (since AFAIK we still can't make that happen automatically at plugin/out of the VGA cable).
Additionally (may or may not be related), I run unagi for compositing and animated wallpapers using xscreensaver and xwinwrap. unagi is started as a systemd user service (as is awesome itself), as are the animated wallpapers (basically a homebrew service file calling a bash script). Also, I'm using infinality-bundle from bohoomil. None of this (I think) is important.
Now, not sure when this started happening, because I rarely do this, but if I start my laptop up with the external monitor plugged in, it mirrors the display at a fairly low res (I'm assuming 1024x768) which I don't bother about, because I just hit the keybinding for the above-mentioned script and get my full res dual monitor setup.
However, once this happens, any app which pops up, which in my case is synapse (app launcher), gmrun (launcher, run via xbindkeys) and keypassx (when requesting passwords) will always pop up on the primary screen. If launched from the primary screen, it'll turn up right in the center as expected. If launched from the second screen (on the right), it'll turn up on the primary screen, but centered in position w.r.t the second screen (different resolution) and to the right-most edge of the primary screen.
If I start the laptop without an external monitor and add it later on (plug in and then run xrandr) everything works as expected, popups are centered properly.
If I start awesome using gdm (and external monitor plugged in) it doesn't show the mirrored displays and everything works as expected.
Because of the last two statements, I doubt the awesomewm configuration is the problem, but I can't imagine how to proceed debugging this. Any suggestions?
EDIT: And as usual, immediately after worrying at this for a day and then posting this thread, I found something that 'works'. Restarting awesome in this case fixes it, and it remains fixed thereafter (till the next restart).
This raises another question though, I remember awesome would automatically restart with xrandr screen changes before, why isn't it doing so now? Or is it doing so too early perhaps?
Last edited by ngoonee (2013-06-27 07:13:29)

o_caino wrote:
Setting mpd as a systemd user service is very simple. This is what I did.
In ~/.config/systemd/user/mpd.service
[Unit]
Description=Music Player Daemon
After=network.target sound.target
[Service]
ExecStart=/usr/bin/mpd --no-daemon
ExecStop=/usr/bin/mpd --kill
[Install]
WantedBy=default.target
To enable
systemctl --user enable mpd
Done.
Well shit. I guess I didn't need to do all that other stuff. I only wish I'd known about this before wasting most of my day. Thank you very much, everything appears to be working flawlessly now.

Similar Messages

  • Dual Monitor Support No Longer Works

    Hi,
    I am using Lightroom 2.0 on a MacBook Pro with OS X 10.5.4
    Dual monitor support use to work with my Samsung external monitor. But now whenever I try to turn on dual monitor function, lightroom crashes. I know the external monitor and connection is working properly because I am able to use all of my other programs with both monitors, but no longer lightroom's dual monitor function.
    Any insight would be much appreciated.
    Thanks

    It was an extremely frustrating process trying to know if indeed this was the way to calibrate this monitor, and after spending so much time and research was all I could come up with. Did you notice the graphing results of both types of calibration? The red (I believe it was) of the RBG graph line was not lined up at all with the G and B thus the weird color on the monitor, and with the Easy mode, they were at least in line, more or less.

  • Dual monitors setup no longer works in Citrix receiver

    I just upgraded to latest OS X Mavericks which no longer allows me to run the Citrix Viewer program in Dual screen mode for my cloud PC. Is there a particular display setting that needs to be changed??

    You need to go to System Prefereneces --> Mission Control:  then disable the setting "Displays have seperate Spaces".   Logout and log back in and Citrix works again as it did under Mountain Lion.
    However ... you have now lost the new multiple display functionality that was introduced under Mavericks, namely menu bars and docks following to the active display.  It's a trade off; hopefully Apple considers this serious enough to fix it in a future release.  Similar problems occur with other x11 based applications.

  • Dual monitor and hw accel mutually exclusive (using Awesome WM)

    Hi I've been using Arch for some months now and I have laptop (Lenovo x220 with integrated intel graphics) with an occasional dual monitor setup. Things were smooth, but I was having issues with video tearing, so I went trough the intel graphics arch wiki page and I was able to turn on hw acceleration and get rid of the video tearing by putting this in my /etc/X11/xorg.conf.d
        # /etc/X11/xorc.conf.d/20-intel.conf
        Section "Device"
           Identifier  "Intel Graphics"
           Driver      "intel"
           Option      "AccelMethod"  "sna"
           Option      "TearFree"     "true"
        EndSection
    The problem is that I add that file I no longer have proper dual monitor with extended desktop, the second monitor kind of mirrors the main one.
    kind of, because I can move the pointer between the two monitors and is not duplicated, but the desktop (widows and awesome menu) is duplicated on the second monitor, but I can only interact with the windows using the mouse from the main monitor.
    I usually do `$ xrandr --mode 1920x1080 --output HDMI1 --right-of LVDS1` to output to the second monitor, and it was working allright.
    I've been trough arch and gentoo wiki looking for dual monitor/xorg config stuff to no avail yet.
    Last edited by vermelho (2012-08-01 20:18:50)

    I found a fix in this thread: http://forums.gentoo.org/viewtopic-p-71 … c9ec76f8b8
    Adding `i915.semaphores=1` to my boot params allows me to use the TearFree option in xorg config, without X crashing and with a dual monitor setup.

  • T510 dual monitors no longer working properly

    I have a T510 running Win7 64-bit.  For at least 3 years, I have had the same dual monitor setup (2 DoubleSight DS-1900S) running off my minidock with the laptop closed.  The rgith monitor is the primary, running off the DVI port, while the left uses the analog port.  I was away for a week at Scout camp, powered on the system once while I was there, and when I came back to the office, my monitor setup started failing. 
    Specifically, the right screen is active but it no longer displays the signal being sent to it.  When I powercycle the screen, I can see the display for about a quarter of a second, then it goes blank.  When the problem first started, I could cycle it about 20 times and eventually it would stay on, until I left the unit overnight and it went to sleep, at which point the probelm started again.
    Sounds like a wonky monitor?  I have a backup set of monitors that I swapped in, and had the same exact problem, so that appears to rule out a mechanical defect.  More fun facts: I can only use the laptop screen as a standalone display.  I cannot get the multidisplay control panel to open, even though my left screen is powered up.  However, one of my programs that normally launches to my right (main) screen will still launch, but not to my laptop screen.  It really wants to live on my right screen, even when that screen is not powered on (I can close the program by accessing the icon bar at the bottom of my laptop screen).
    As you might surmise, this is an extremely frustrating situation.  I have gone on many trips with this laptop, and each time I returned, I either plugged it into the minidock with no issues, or I had to readjust my power settings briefly to get it to work as per usual.  This time, I have no clue what went wrong.  Suggestions?
    Solved!
    Go to Solution.

    I have not changed any software or drivers (knowingly), and I had already checked the cables to make sure they were all tight, so off I went to ransack the house to dig out the spare cables.  DVI cable? no change.  Power cable? no change.  Converter cable - OMG!!!!  IT WORKS!!!!
    Thank you SO much!  I could have sworn this was a software issue, never considered a bad cable or power unit.
    Both monitors are working properly, left-to-right scroll is working properly.  Now all I need is to figure out how to get all my icons/shortcuts back onto the right screen...

  • Dual monitors - popup locations

    I have RoboHelp HTML 2002 Build 949. I have a secondary
    monitor that is on the left of the primary monitor so the x
    coordinates are negative. When I open a help window on the
    secondary monitor, and have text popups setup to appear when a
    button or a piece of text is clicked, the popups appear on the
    primary monitor with '0' x-coordinate and correct y-coordinate.
    If the secondary monitor were to be on the right side of the
    primary monitor, the popup appears correctly. If the help window is
    on the primary monitor, the popup appears correctly. So my
    conclusion is that RoboHelp HTML 2002 is not handling negative
    coordinates situation (which arises in the case of dual monitors
    when the primary monitor is on the right side) properly. Or there
    is something that I can do programmatically.
    Is there anything that can be done by me to fix this problem?
    And/or is it true that RoboHelp HTML 2002 is not handling negative
    coordiates situation?
    Thanks!
    Rajesh

    Rajesh,
    I use RoboHelp 2000, and the application doesn't handle the
    dual monitor well. For instance, I can't get it to use the second
    monitor as a default position. I think the application was written
    before dual monitors became commonplace. I think your only option
    would be to edit the BSSCDHTM.JS file - functions like
    BSSCPopup_ResizeAfterLoad. Unfortunately, I can't tell you how to
    do this because I'm not very fluent in javascript, especially when
    it comes to the built in functions to get existing document
    properties.
    John

  • Dual Monitors w/ G5 - two users possible?

    A question for those more knowledgeable than I about dual-monitor operation: Assuming I have a 2.0gHz G5 and two 23" DVI displays, can I run separate user accounts simultaneously on the same machine?
    In other words, can the person across the desk from me use a separate monitor and keyboard connected to the same G5 and log in under another account while I'm working away under my account?
    Thanks for any help you can offer.
    15" 1.67gHz PowerBook   Mac OS X (10.4.6)

    Hi
    it's an interesting idea but I don't think it's possible. You can set up two user accounts and use fast user switching to switch between them, but I don't see how both accounts can be used simultaneously. For a start there's no way for the computer and OS to know which keyboard, mouse and monitor are being used by each user.

  • Can DV6-1352 Handle Long-Term Dual Monitors on the Graphics card

    Hey guys, 
    Very simple question here. I wanted to set up a dual monitor thing on my Dv6-1352. I believe it has this integrated graphics chip : Intel® Graphics Media Accelerator 4500MHD. I wanted to use the dual monitor capabilities on it, but I was wondering if over time, extended use of the graphics card due to dual monitors would make it over heat/kill it. I don't plan on playing games, just using it cuz A) Its pretty cool B)It'd help increase efficiency in my engineering school work which requires I have a lot of things open at the same time. 
    Thanks in advance!

    Hi
    The retail version of the 9600 comes with two DVI ports.
    I think some companies were selling OEM versions with an ADC and DVI port that had been pulled from G5s and modified to work in G4s.
    In a G5 both ports work fine but in a G4 I don't think the ADC port is powered. The Quicksilver does actually have the required internal power slot, but I think it's in a different position on the logic board. Consequently the power stub on the card which lines up with the slot in a G5 doesn't line up with the slot in a G4.
    I think you can still use two monitors by using an ADC to DVI adapter cable. This would convert the unpowered ADC port into a second DVI port.
    To connect two DVI monitors, you'd just need one ADC to DVI adapter cable.
    To connect two ADC monitors, you'd need the above adapter plus two DVI to ADC adapters which are fairly expensive ($99 each).
    To connect one DVI monitor and one ADC monitor, you'd need one ADC to DVI adapter cable and one DVI to ADC adapter.
    The retail 9600 doesn't have an ADC port either, so either way you'd end up buying some form of adapter in order to use an ADC monitor.
    I hope this helps.

  • How do I set-up my TV as a dual monitor for my MacBook Pro?

    Hi
    I have a mid-2009 MacBook Pro running (OS X 10.8.2) Mountain Lion, and recently I rearranged my home workspace so that I can view my TV from my desk while I work.
    I would like to set-up my TV as a dual monitor for my MacBook Pro, so I can stream videos on my TV screen and have the whole screen to do work on my MacBook Pro at the same time.
    Is this possible? I've seen people use TVs as a mirror display (where it works as their main and only monitor), but never as a fully operational dual display.
    As an example, I would like to have my MacBook screen showing a desktop with the whole screen devoted to Photoshop, while I have another desktop running on my TV, which shows an internet browser or other application.
    If this is possible, what cords/hardware would I need, and what are the settings that will enable me to do this?
    - My TV is a modern flatscreen LCD, and it has two HDMI ports in the back.
    - It's about 9-10 feet from my desk.
    If anyone could help, that'd be awesome!
    Thanks.

    Yes, you can do that.
    You'll need a mini displayport to HDMI adaptor:
    http://store.apple.com/us/product/H1824ZM/A/moshi-mini-dp-to-hdmi-adapter-with-a udio-support
    and an HDMI cable long enough to reach your TV
    (look on Amazon or Monoprice for the best price on any of those parts)
    In your display options, you will just choose extended desktop vs mirrored display.

  • T60p and dock station: can't do the dual monitors

    hi gurus:
    i have a t60p and a mini dock station. the docking station seems to be working fine execept the problems with dual-monitor function.
    1) for some reasons, the laptop lcd always shows up as screen 2 instead of default screen 1
    2) tried to monkey around the settings and got messages claimed that i don't have administrative rights to change... blah, blah (i am the sole person using this laptop and i am the administrator).
    any idea?
    any help will be greatly appreciated.
    thanks
    _dave

    Hi Paul,
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or some USB or Firewire device, or 3rd party add-on, Check System Preferences>Accounts (Users & Groups in later OSX versions)>Login Items window to see if it or something relevant is listed. Or an errant process eating up RAM.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

  • Lost Dual Monitor capabilites after recent update

    After a recent update, our terminal server users no longer have the ability to have actual dual monitor capability without it just spanning over two screens. Has anyone else experienced this? Is there a fix for this?

    Hi,
    Thanks for posting in Windows Server Forum.
    As this thread has been quiet for a while, we assume that the issue has been resolved. At this time, we will mark it as ‘Answered’ as the previous steps should be helpful for many similar scenarios. If the issue still persists, please feel free to  reply
    this post directly so we will be notified to follow it up. 
    BTW,  we’d love to hear your feedback about the solution. By sharing your experience you can help other community members facing similar problems. 
    Thanks for your Support & understanding.
    Regards.
    Dharmesh Solanki
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Advice about dual monitor, "newbie" friendly WMs

    Need some advice:
    Just got another monitor for my laptop (a samsung 23.5'' 2333sw), and I'm trying to tweak my monitor setup. What are the best panels/windowmanagers for dual monitors? Like right now I'm using compiz + tint2 and when I change workspaces, both monitors change workspaces. When I open a program, it appears in the taskbar on both monitors. I'd like them to be more independant (but still be able to share windows between them, so separate xorg files are out). Awesome kept things separate automatically, which brings me to my next question....
    I don't want to use awesome (although it handles dual monitors exactly how I like, with no tweaking) because I'm having extended family stay over for a few weeks and I'd like to make my computer as user friendly as possible (part of me wants to do some linux converting). I'm talking totally mouse-based. OSX-esque dock, the works. Guys have any advice for the best window manager/apps to appeal to windows/mac users? Not that I want to make a windows clone. I just want something inviting, intuitive, with a low learning curve.
    Part of me is thinking of maybe just tweaking awesome so it includes titlebars, is always floating, and has a dock. Since it handles dual monitors well right now, this might be the path of least resistance.
    Thoughts?

    That's a very interesting topic. The program lxrandr is able to control the behaviour of plugged monitors but obviously it is only able to display the same content on both screens.
    so are there some lightweight programs that can differ between the content like e.g. gnome is able?
    Last edited by orschiro (2009-06-06 21:06:40)

  • How to set up dual monitors with a Mac Mini

    The Mac Mini has only one video output port. I very nearly didn't buy a Mac Mini system because I need to work with two monitors. I use the second monitor to display information in Web pages, PDFs, and Word documents while I am working in the main window.
    However, I discovered after quite a bit of Googling that it is possible to set up dual monitors using an inexpensive USB video adapter (about $70).
    So I bought my Mini (1.83Ghz, 2GB RAM, 200GB 7200rpm Seagate Momentus), and I also bought a USB video adapter called the EVGA Plus.
    I've installed this system and used it now for a week, and I am quite pleased with it. So I thought I'd pass this information along to anyone who's interested. Please note that, although this is my first post to this forum, this isn't spam -- I have no financial relationship with any of the companies mentioned here, other than as a customer.
    LINKS
    EVGA Plus:
    http://www.evga.com/articles/409.asp
    Their literature does not mention Mac OS X compatibility. However, the underlying technology is made by Display Link. You can download beta Mac OS X drivers from their site:
    Go to Display Link to download the beta Mac OS support -- see
    http://www.displaylink.com/macbetadrivers.html
    The disk image includes a very well written PDF document that explains the driver's status and limitations.
    PICS
    My Mac Mini setup, with dual monitors:
    http://lh5.ggpht.com/BPfaffenberger/SGV5A7lA2QI/AAAAAAAABMI/CBuR4m3uGRA/IMG_0144 .JPG?imgmax=800
    The EVGA+ USB display unit - a tiny little thing - driven by Mac OS beta drivers from Display Link:
    http://lh3.ggpht.com/BPfaffenberger/SGV49qpHuQI/AAAAAAAABME/b9wo9TZPJdE/IMG_0143 .JPG?imgmax=800
    *MORE INFO*
    A thread at 123macmini.com on the same topic, including another user's experiences and MUCH better pictures:
    http://www.123macmini.com/forums/viewtopic.php?t=19126&postdays=0&postorder=asc& start=0&sid=5a05cb75b90cab5bbc7dfd16b02632c1
    NOTES
    * The DisplayLink driver is beta. It doesn't support 2D or 3D accelerated graphics. You can't use it to display iPhoto slide shows, for example. However, I need to be able to display a Web page, document, or PDF in the second monitor while I am working in the first. I've found this solution to be quite acceptable for this purpose.
    * Several other companies make USB video units that use the same DisplayLink support, so they should work, too. However, they are more expensive -- largely because they're set up to function as port expanders, I believe. The EVGA Plus was the only unit priced under $100 when I did my search.
    * USB does not have very much bandwidth, so you might be surprised that to hear that it's possible to use USB to drive a monitor! You'll find that the display isn't as fast as DVI, but for my purposes, I've found it quite acceptable.
    * The EVGA Plus comes with a terrible USB to mini USB cable that will cause all sorts of display problems. Replace it with the type of cable that is used to hook up digital cameras to a USB port.
    * Once everything is installed, you can use the Displays in System Preferences (or just click the icon on the menu bar) to adjust the second monitor. You can choose display resolutions (depending on your monitor's ability, of course). Rotation works. You can also right-click the second monitor and choose a different background color or graphic.
    Don't expect miracles. Don't go this route if you want to run videos or games in the second monitor. And if you get an EVGA Plus, replace that horrible cable!
    I hope this information is helpful.
    Bryan

    There has been quite a lot of discussion here about driving twin displays with the mini, and more recently about the potential for USB video adapters to facilitate this, particularly in the light of several vendors claiming they have suitable MacOS devices and drivers 'almost ready'.
    The DisplayLink solution seems to be the one most suggested as viable, though it's a pity they have not yet been able to move their drivers from beta - I suspect that puts a few people off. It's therefore good to hear of a real-world experience that should help others decide whether or not to go this route!

  • Problems setting up dual monitors

    I am having problems setting up dual monitors on a band new HP envy 700 using windows 8. I just bought this computer and bought DVI to via adapters to use. Everything is hooked up but nothing is happening on the 2nd monitor. Help!

    Jaimetech3, welcome to the forum.
    When requesting help you should always include the make/model (i.e. p6-xxxx) of the computer and/or monitor. This information is necessary for us to review the specifications of them.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • DUAL MONITOR BUG: One Picture – One Monitor – Different Colors!

    There have been several threads discussing that Photoshop CS4 and OS 10.6. show wrong colors in dual monitor setups.
    The first one to prove this with a screen capture was jb510-LJ0JJQ in August 2009: http://forums.adobe.com/message/2207312#2207312
    Eight months and three OS updates later the problem is still there and makes professional work with more than one monitor a nuisance.
    Here's another actual example: A picture and its 100% identical copy showing different colors on one screen!
    Here's how to repeat it – try this at home ;-)
    1) In the finder make a copy of a rgb picture.
    2) Open one of the two identical pics in photoshop.
    3) Drag it to the other monitor.
    When releasing the mouse button you may see the bug already: the colors will "switch".
    4) To verify this go to system presets - monitors - and change the primary monitor (by dragging the menu bar to the other)
    5) Now open the identical copy you made in step 1) and see the difference!
    Here's a synopsis of suggested workarounds:
    1) disable open GL (which seem to makes no difference on my setup)
    2) click "desaturate monitor colors" but set desaturation to 0 (which prevents visual switching in step 3) (only if openGL is ON) but also leads to a wrong display in step 4+5
    3) make the hardware calibrated monitor your default monitor and strictly avoid changes or dragging pics to the other monitor (which seems to be the only reliable method)
    4) some guys even force both monitors to use the profile of their hardware-calibrated monitor (using color sync) to make sure they see what they should see on at least that one monitor. What a stone-age workaround for the the world's leading imaging program!
    Considering that reliable colors in professional (=multi monitor) settings should be the most basic function of photoshop this mayor malfunction should be solved with CS5! Otherwise we might have to live with it for some more years...
    Have Adobe and Apple realized this bug and on their agenda? Will it be gone with OS 10.6.3? Can anyone explain the reasons for this bad bug? Is there a "officially" recommended workaround?
    Thanks, regards,
    Eric

    There have been several threads dealing with this malfunction. But most faded out in silence or acceptance of the workarounds.
    http://forums.adobe.com/message/2207312#2207312
    http://forums.adobe.com/thread/521483
    http://forums.adobe.com/message/2272192#2272192
    http://forums.adobe.com/thread/311761?start=0&tstart=0
    http://forums.adobe.com/thread/618927?tstart=60
    http://forums.adobe.com/thread/603992?tstart=90
    http://www.wetcanvas.com/forums/showthread.php?t=552977
    http://www.hilfdirselbst.ch/gforum/gforum.cgi?post=368889?search_string=zwei%20monitor#368 889
    But man, this is no minor bug! Consistent colors are the by far most important basic function of photoshop. If you cannot rely on the colors in photoshop you can as well use "Preview" and "Word" for print production ;-)
    Carson, how did Apple react to your complaint? What do you mean with "they don't get it". Do they not see it? Or can't they get it right?
    Shall we open a thread at apple forums to point out that it's not the problem of a single user?

Maybe you are looking for