Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm having some issues with Conky not working correctly on login. I'm using a pretty standard install of Xubuntu 14.04. I see the window for a few seconds right after login, but when the desktop picture appears, conky disappears behind it. It's still running, but it is behind the desktop image. I have tried adding a sleep command to the startup script to force Conky to run later, but it just seems to make login in take longer.
I think it may be something to do with my graphics drivers. I have an Nvidia GTX 750 TI, so I can't use the drivers in the repositories. The most current driver in the repositories is 331, which doesn't support the 750 TI. I had to download the more recent 334 branch from Nvidia's website and install it using their supplied installer script.
Any thoughts?
Here is my .conkyrc config file.
Quote:
background no
update_interval 1
default_color darkgrey
draw_outline no
format_human_readable yes
own_window yes # create a separate XWindow over the one from Xfdesktop
own_window_colour white
own_window_type override # the window cannot be moved or resized
#own_window_argb_visual no # =NO : Important otherwise own_window yes don't work !!
#own_window_argb_value 0 # make the background semi-transparent
own_window_transparent yes
own_window_class Conky
own_window_type override # the window cannot be moved or resized
Do you need that line?
Quote:
#own_window_argb_visual no # =NO : Important otherwise own_window yes don't work !!
#own_window_argb_value 0 # make the background semi-transparent
This looks really suspect, unless Buntu has some really weird configurations (which of course is entirely possible). For example, this is the relevant portion from my conky.conf. Short and simple.
I've done a bit of testing with different config options, and nothing seems to fix my issue. Setting own_window to anything other than override results in either conky or my desktop icons disappearing randomly, and also when clicking on the desktop. The original issue of conky disappearing when the desktop image appears is still there. Trying to make conky load after the desktop by adding a sleep command to the startup script actually results in conky not starting at all. When there is no sleep command, conky starts, and then gets hidden by the desktop image, but is still running behind it.
Here is the relevant part of my new .conkyrc file.
Using the "own_window desktop" or "own_window_type desktop" directives cause the desktop icons to disappear. The icons are still there, as clicking on where they should be makes them show up again, but when conky refreshes, they disappear again. There's also the minor annoyance of the drag-to-select box causing any part of the conky window it covers to disappear until the next update. I'm pretty sure I have the settings correct, as conky works perfectly once started from the terminal. It's just the autostart part that doesn't work. It shows up correctly for a few seconds and then disappears when the desktop image loads.
Something I just thought of. I have a 3-monitor setup. On the login screen, all the monitors display the left monitor's image. Once I log in, it takes a few seconds for it to load in the correct images for the middle and right screens. It's when this happens that conky, running on the right screen, disappears. Might there something weird about multi-monitor setups and the desktop background stuff?
3 is the default display as selected by the graphics card. It is the one that the BIOS and GRUB appear on.
I believe that 1 is the default display according to X, although I'm not sure how to tell. I just seem to remember setting it as that when I first set up my system.
Displays 2 and 3 are positioned as absolute shifts to the right of display 1, +1920+0, and +3840+0 respectively.
An interesting note, the nvidia-settings control panel correctly detects which display is which, but if I click "Identify Displays" in the Xfce display control panel, the names show up on the wrong displays, but the resolution is correct on every display.
Here is my xorg.conf, as generated by nvidia-settings. Although it seems to only have information about the whole X screen, not the individual physical displays.
Quote:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 331.20 (buildd@roseapple) Mon Feb 3 15:07:22 UTC 2014
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
I'm watching with interest as I never got my conky to appear on startup on my dual monitor NVIDIA setup. When I start it I start it on the monitor I want it to run on (monitor 0) using run. Mine also hides desktop icons but is in front of the picture -- I don't use desktop icons anyhow so that doesn't bother me too much. Anyhow, I seem to be using default values for a few things, the relevant bits of my .conkyrc being
if I click "Identify Displays" in the Xfce display control panel, the names show up on the wrong displays, but the resolution is correct on every display.
You're luckier than I on that feature. Mine has never worked. It doesn't error, but it doesn't identify them either.
I'm using the TwinView feature on Nvidia Driver 319.22
as far as placement goes, middle-middle or mm on conkry puts is right smack in the middle of both displays. where the right side of Monitor0 meets the left side of Monitor1 as shown in the attachment.
Here's my .nvidia-settings-rc for shits and giggles
After a bit more testing, I can pretty much conclusively say that something in the combination of conky, Xfce 4, and Nvidia 334.21 doesn't quite work for multi-monitor setups. If I disable all but 1 monitor, everything works perfectly. My best guess is that something about the way that Xfce loads desktop images is causing a conflict. I guess this should have been obvious since the login screen backgrounds are completely wrong. It shows the main screen's wallpaper on the second and 3rd screens, and stretched to fill each. It only loads the correct wallpapers for screens 2 and 3 after login has completed. I guess I'll just have to stick to loading conky manually until multi-monitor support is fixed. Thanks for all the help anyway.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Many thanks, Habitual, I had given up on conky myself after messing with sleep scripts nad the like but never realised it had its own sleep parameter -- now I have a conky autostarting too!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.