Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Gtk-WARNING **: cannot open display: :0.0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
yumyum
n00b
n00b


Joined: 06 Nov 2008
Posts: 38
Location: Iceland

PostPosted: Fri Jul 12, 2013 11:57 pm    Post subject: [SOLVED] Gtk-WARNING **: cannot open display: :0.0 Reply with quote

I have a problem

Code:

~ $ lxterminal
No protocol specified

(lxterminal:8641): Gtk-WARNING **: cannot open display: :0.0


This is what I get after using my desktop for sometime, I'm not sure what's causing this. When i startx, all is fine and dandy for a long time then boom this error appears when I try to open an application in X.

Any more info you need just ask.
_________________
Would you mind telling me why there is ricearoni in my coffee!?


Last edited by yumyum on Sun Jul 21, 2013 1:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
sifosvaca
n00b
n00b


Joined: 09 Nov 2002
Posts: 21

PostPosted: Sat Jul 13, 2013 10:30 pm    Post subject: Reply with quote

Hello,

I have the same problem, and so does this guy/girl: http://forums.gentoo.org/viewtopic-p-7346870.html
so at least we are not alone...

It started a few days ago, when you first run X everything works fine, then after a while, when you try to start a new program you get:
Code:

No protocol specified
cannot open display: :0

I use Openbox but I've created a new user for testing and started X with the default no-wm, and after a while... 'No protocol specified' 'cannot open display: :0'. So it's nothing from the Openbox conf.
Google has not been very helpful, it returns results about a different issue where people can't launch apps as root from a normal user spawned X server. But the solutions for that problem don't seem to work with ours, and after playing a bit with xauth and xhost, I ran out of ideas...
I really don't know what's going on.
Back to top
View user's profile Send private message
The Doctor
Veteran
Veteran


Joined: 27 Jul 2010
Posts: 1266

PostPosted: Sat Jul 13, 2013 10:43 pm    Post subject: Reply with quote

Since this is no longer on the unanswered list, may I inquire if you have checked you messages (ctl+alt+F12) or your Xorg log (/var/log/Xorg.0.log)?
_________________
First things first, but not necessarily in that order.
Back to top
View user's profile Send private message
sifosvaca
n00b
n00b


Joined: 09 Nov 2002
Posts: 21

PostPosted: Sun Jul 14, 2013 5:07 am    Post subject: Reply with quote

from /var/log/messages
Code:

...
Jul 13 22:24:16 barcino kernel: [   15.342163] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Jul 13 22:24:22 barcino login[1865]: pam_unix(login:session): session opened for user joan by LOGIN(uid=0)
Jul 13 22:24:22 barcino dbus[1642]: [system] Activating service name='org.freedesktop.ConsoleKit' (using servicehelper)
Jul 13 22:24:22 barcino dbus[1642]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
Jul 13 22:24:22 barcino polkitd[1940]: Started polkitd version 0.111
Jul 13 22:24:22 barcino polkitd[1940]: Loading rules from directory /etc/polkit-1/rules.d
Jul 13 22:24:22 barcino polkitd[1940]: Loading rules from directory /usr/share/polkit-1/rules.d
Jul 13 22:24:22 barcino polkitd[1940]: Finished loading, compiling and executing 1 rules
Jul 13 22:24:22 barcino dbus[1642]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Jul 13 22:24:22 barcino polkitd[1940]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Jul 13 22:24:22 barcino dbus[1642]: [system] Successfully activated service 'org.freedesktop.ConsoleKit'
Jul 13 22:24:23 barcino dhcpcd[1805]: eth0: no IPv6 Routers available
Jul 13 22:24:25 barcino kernel: [   31.131081] nvidia 0000:05:00.0: irq 50 for MSI/MSI-X
Jul 13 22:24:31 barcino polkitd[1940]: Registered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session1 (system bus name :1.4 [/usr/libexec/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale ca_ES.UTF-8)
Jul 13 22:28:43 barcino kernel: [  288.450333] Watchdog[2309]: segfault at 0 ip 00007f6ea75f69f6 sp 00007f6e90b5d3a0 error 6 in chrome[7f6ea6693000+4de8000]
Jul 13 22:28:55 barcino kernel: [  301.192748] Watchdog[2328]: segfault at 0 ip 00007f5c7ee1c9f6 sp 00007f5c683833a0 error 6 in chrome[7f5c7deb9000+4de8000]
Jul 13 22:29:08 barcino kernel: [  313.444433] Watchdog[2338]: segfault at 0 ip 00007f2e877a09f6 sp 00007f2e70d073a0 error 6 in chrome[7f2e8683d000+4de8000]
Jul 14 01:19:27 barcino sudo:     joan : TTY=pts/0 ; PWD=/home/joan ; USER=root ; COMMAND=/usr/bin/emerge wine
Jul 14 01:19:27 barcino sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Jul 14 01:50:45 barcino sudo: pam_unix(sudo:session): session closed for user root
Jul 14 06:36:29 barcino sudo:     joan : TTY=pts/0 ; PWD=/home/joan ; USER=root ; COMMAND=/bin/cat /var/log/messages
Jul 14 06:36:29 barcino sudo: pam_unix(sudo:session): session opened for user root by (uid=0)


/var/log/Xorg.0.log
Code:

[    35.218]
X.Org X Server 1.14.2
Release Date: 2013-06-25
[    35.218] X Protocol Version 11, Revision 0
[    35.218] Build Operating System: Linux 3.9.8-gentoo x86_64 Gentoo
[    35.218] Current Operating System: Linux barcino 3.9.8-gentoo #2 SMP Sat Jul 13 03:30:26 CEST 2013 x86_64
[    35.218] Kernel command line: BOOT_IMAGE=/boot/kernel-3.9.8-gentoo root=/dev/sda3
[    35.219] Build Date: 11 July 2013  03:11:16PM
[    35.219] 
[    35.219] Current version of pixman: 0.30.0
[    35.219]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[    35.219] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    35.221] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jul 14 06:55:39 2013
[    35.257] (==) Using config file: "/etc/X11/xorg.conf"
[    35.257] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    35.258] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    35.267] (==) No Layout section.  Using the first Screen section.
[    35.267] (**) |-->Screen "Screen0" (0)
[    35.267] (**) |   |-->Monitor "<default monitor>"
[    35.268] (**) |   |-->Device "Card0"
[    35.268] (==) No monitor specified for screen "Screen0".
   Using a default monitor configuration.
[    35.268] (==) Automatically adding devices
[    35.268] (==) Automatically enabling devices
[    35.268] (==) Automatically adding GPU devices
[    35.288] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[    35.288]    Entry deleted from font path.
[    35.288] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[    35.288]    Entry deleted from font path.
[    35.288] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[    35.288]    Entry deleted from font path.
[    35.288] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[    35.288]    Entry deleted from font path.
[    35.288]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[    35.289] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[    35.289]    Entry deleted from font path.
[    35.289]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[    35.289] (==) FontPath set to:
   /usr/share/fonts/misc/
[    35.289] (==) ModulePath set to "/usr/lib64/xorg/modules"
[    35.289] (**) Extension "Composite" is disabled
[    35.289] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[    35.289] (II) Loader magic: 0x811c00
[    35.289] (II) Module ABI versions:
[    35.289]    X.Org ANSI C Emulation: 0.4
[    35.289]    X.Org Video Driver: 14.1
[    35.289]    X.Org XInput driver : 19.1
[    35.289]    X.Org Server Extension : 7.0
[    35.290] (II) xfree86: Adding drm device (/dev/dri/card0)
[    35.292] (--) PCI:*(0:5:0:0) 10de:0a65:1458:34d5 rev 162, Mem @ 0xfd000000/16777216, 0xd0000000/268435456, 0xce000000/33554432, I/O @ 0x0000ec00/128, BIOS @ 0x????????/524288
[    35.293] Initializing built-in extension Generic Event Extension
[    35.293] Initializing built-in extension SHAPE
[    35.294] Initializing built-in extension MIT-SHM
[    35.294] Initializing built-in extension XInputExtension
[    35.294] Initializing built-in extension XTEST
[    35.295] Initializing built-in extension BIG-REQUESTS
[    35.295] Initializing built-in extension SYNC
[    35.295] Initializing built-in extension XKEYBOARD
[    35.295] Initializing built-in extension XC-MISC
[    35.296] Initializing built-in extension XINERAMA
[    35.296] Initializing built-in extension XFIXES
[    35.296] Initializing built-in extension RENDER
[    35.297] Initializing built-in extension RANDR
[    35.297] Initializing built-in extension COMPOSITE
[    35.297] Initializing built-in extension DAMAGE
[    35.298] Initializing built-in extension MIT-SCREEN-SAVER
[    35.298] Initializing built-in extension DOUBLE-BUFFER
[    35.298] Initializing built-in extension RECORD
[    35.299] Initializing built-in extension DPMS
[    35.299] Initializing built-in extension X-Resource
[    35.299] Initializing built-in extension XVideo
[    35.300] Initializing built-in extension XVideo-MotionCompensation
[    35.300] Initializing built-in extension XFree86-VidModeExtension
[    35.300] Initializing built-in extension XFree86-DGA
[    35.300] Initializing built-in extension XFree86-DRI
[    35.301] Initializing built-in extension DRI2
[    35.301] (II) LoadModule: "glx"
[    35.317] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[    35.736] (II) Module glx: vendor="NVIDIA Corporation"
[    35.736]    compiled for 4.0.2, module version = 1.0.0
[    35.736]    Module class: X.Org Server Extension
[    35.736] (II) NVIDIA GLX Module  325.08  Wed Jun 26 17:51:26 PDT 2013
[    35.775] Loading extension GLX
[    35.775] (II) LoadModule: "nvidia"
[    35.794] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[    35.848] (II) Module nvidia: vendor="NVIDIA Corporation"
[    35.849]    compiled for 4.0.2, module version = 1.0.0
[    35.849]    Module class: X.Org Video Driver
[    35.854] (II) NVIDIA dlloader X Driver  325.08  Wed Jun 26 17:32:32 PDT 2013
[    35.854] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    35.855] (--) using VT number 7

[    35.923] (II) Loading sub module "fb"
[    35.923] (II) LoadModule: "fb"
[    35.923] (II) Loading /usr/lib64/xorg/modules/libfb.so
[    35.947] (II) Module fb: vendor="X.Org Foundation"
[    35.947]    compiled for 1.14.2, module version = 1.0.0
[    35.947]    ABI class: X.Org ANSI C Emulation, version 0.4
[    35.947] (WW) Unresolved symbol: fbGetGCPrivateKey
[    35.947] (II) Loading sub module "wfb"
[    35.947] (II) LoadModule: "wfb"
[    35.948] (II) Loading /usr/lib64/xorg/modules/libwfb.so
[    35.955] (II) Module wfb: vendor="X.Org Foundation"
[    35.955]    compiled for 1.14.2, module version = 1.0.0
[    35.955]    ABI class: X.Org ANSI C Emulation, version 0.4
[    35.955] (II) Loading sub module "shadow"
[    35.955] (II) LoadModule: "shadow"
[    35.955] (II) Loading /usr/lib64/xorg/modules/libshadow.so
[    35.966] (II) Module shadow: vendor="X.Org Foundation"
[    35.966]    compiled for 1.14.2, module version = 1.1.0
[    35.966]    ABI class: X.Org ANSI C Emulation, version 0.4
[    35.966] (II) Loading sub module "ramdac"
[    35.966] (II) LoadModule: "ramdac"
[    35.966] (II) Module "ramdac" already built-in
[    35.969] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[    35.969] (==) NVIDIA(0): RGB weight 888
[    35.969] (==) NVIDIA(0): Default visual is TrueColor
[    35.970] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[    35.970] (**) NVIDIA(0): Enabling 2D acceleration
[    36.234] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20130102)
[    36.286] (II) NVIDIA(GPU-0): Display (Philips 190S (CRT-1)) does not support NVIDIA 3D
[    36.286] (II) NVIDIA(GPU-0):     Vision stereo.
[    36.287] (II) NVIDIA(0): NVIDIA GPU GeForce 210 (GT218) at PCI:5:0:0 (GPU-0)
[    36.287] (--) NVIDIA(0): Memory: 524288 kBytes
[    36.287] (--) NVIDIA(0): VideoBIOS: 70.18.3a.00.07
[    36.287] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[    36.288] (--) NVIDIA(0): Valid display device(s) on GeForce 210 at PCI:5:0:0
[    36.288] (--) NVIDIA(0):     CRT-0
[    36.288] (--) NVIDIA(0):     Philips 190S (CRT-1) (boot, connected)
[    36.288] (--) NVIDIA(0):     DFP-0
[    36.288] (--) NVIDIA(0):     DFP-1
[    36.288] (--) NVIDIA(0): CRT-0: 400.0 MHz maximum pixel clock
[    36.288] (--) NVIDIA(0): Philips 190S (CRT-1): 400.0 MHz maximum pixel clock
[    36.288] (--) NVIDIA(0): DFP-0: 330.0 MHz maximum pixel clock
[    36.288] (--) NVIDIA(0): DFP-0: Internal Single Link TMDS
[    36.289] (--) NVIDIA(0): DFP-1: 165.0 MHz maximum pixel clock
[    36.289] (--) NVIDIA(0): DFP-1: Internal Single Link TMDS
[    36.289] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[    36.289] (**) NVIDIA(0):     device Philips 190S (CRT-1) (Using EDID frequencies has
[    36.289] (**) NVIDIA(0):     been enabled on all display devices.)
[    36.293] (II) NVIDIA(0): Validated MetaModes:
[    36.293] (II) NVIDIA(0):     "CRT-1:1280x1024_60{}"
[    36.293] (II) NVIDIA(0):     "CRT-1:1024x768_60{}"
[    36.293] (II) NVIDIA(0):     "CRT-1:800x600_60{}"
[    36.293] (II) NVIDIA(0):     "CRT-1:640x480_60{}"
[    36.293] (II) NVIDIA(0): Virtual screen size determined to be 1280 x 1024
[    36.319] (--) NVIDIA(0): DPI set to (85, 86); computed from "UseEdidDpi" X config
[    36.319] (--) NVIDIA(0):     option
[    36.319] (--) Depth 24 pixmap format is 32 bpp
[    36.319] (II) NVIDIA: Using 768.00 MB of virtual memory for indirect memory access.
[    36.324] (II) NVIDIA(0): Setting mode "CRT-1:1280x1024_60{}"
[    36.360] Loading extension NV-GLX
[    36.394] (==) NVIDIA(0): Disabling shared memory pixmaps
[    36.394] (==) NVIDIA(0): Backing store disabled
[    36.394] (==) NVIDIA(0): Silken mouse enabled
[    36.396] (==) NVIDIA(0): DPMS enabled
[    36.403] Loading extension NV-CONTROL
[    36.404] Loading extension XINERAMA
[    36.404] (II) Loading sub module "dri2"
[    36.404] (II) LoadModule: "dri2"
[    36.404] (II) Module "dri2" already built-in
[    36.404] (II) NVIDIA(0): [DRI2] Setup complete
[    36.404] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[    36.404] (--) RandR disabled
[    36.422] (II) Initializing extension GLX
[    36.856] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[    36.856] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[    36.856] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[    36.856] (II) LoadModule: "evdev"
[    36.856] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[    36.881] (II) Module evdev: vendor="X.Org Foundation"
[    36.881]    compiled for 1.14.2, module version = 2.8.0
[    36.881]    Module class: X.Org XInput Driver
[    36.881]    ABI class: X.Org XInput driver, version 19.1
[    36.881] (II) Using input driver 'evdev' for 'Power Button'
[    36.881] (**) Power Button: always reports core events
[    36.881] (**) evdev: Power Button: Device: "/dev/input/event1"
[    36.881] (--) evdev: Power Button: Vendor 0 Product 0x1
[    36.881] (--) evdev: Power Button: Found keys
[    36.881] (II) evdev: Power Button: Configuring as keyboard
[    36.881] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1/event1"
[    36.881] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[    36.881] (**) Option "xkb_rules" "evdev"
[    36.881] (**) Option "xkb_model" "evdev"
[    36.881] (**) Option "xkb_layout" "es"
[    36.952] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[    36.952] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[    36.952] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[    36.953] (II) Using input driver 'evdev' for 'Power Button'
[    36.953] (**) Power Button: always reports core events
[    36.953] (**) evdev: Power Button: Device: "/dev/input/event0"
[    36.953] (--) evdev: Power Button: Vendor 0 Product 0x1
[    36.953] (--) evdev: Power Button: Found keys
[    36.953] (II) evdev: Power Button: Configuring as keyboard
[    36.953] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0/event0"
[    36.953] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 7)
[    36.953] (**) Option "xkb_rules" "evdev"
[    36.953] (**) Option "xkb_model" "evdev"
[    36.953] (**) Option "xkb_layout" "es"
[    36.954] (II) config/udev: Adding drm device (/dev/dri/card0)
[    36.954] (II) config/udev: Adding input device SIGMACHIP Usb Mouse (/dev/input/event3)
[    36.954] (**) SIGMACHIP Usb Mouse: Applying InputClass "evdev pointer catchall"
[    36.954] (**) SIGMACHIP Usb Mouse: Applying InputClass "evdev pointer catchall"
[    36.954] (II) Using input driver 'evdev' for 'SIGMACHIP Usb Mouse'
[    36.954] (**) SIGMACHIP Usb Mouse: always reports core events
[    36.954] (**) evdev: SIGMACHIP Usb Mouse: Device: "/dev/input/event3"
[    36.954] (--) evdev: SIGMACHIP Usb Mouse: Vendor 0x1c4f Product 0x3
[    36.955] (--) evdev: SIGMACHIP Usb Mouse: Found 3 mouse buttons
[    36.955] (--) evdev: SIGMACHIP Usb Mouse: Found scroll wheel(s)
[    36.955] (--) evdev: SIGMACHIP Usb Mouse: Found relative axes
[    36.955] (--) evdev: SIGMACHIP Usb Mouse: Found x and y relative axes
[    36.955] (II) evdev: SIGMACHIP Usb Mouse: Configuring as mouse
[    36.955] (II) evdev: SIGMACHIP Usb Mouse: Adding scrollwheel support
[    36.955] (**) evdev: SIGMACHIP Usb Mouse: YAxisMapping: buttons 4 and 5
[    36.955] (**) evdev: SIGMACHIP Usb Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    36.955] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:12.0/usb4/4-5/4-5:1.0/input/input4/event3"
[    36.955] (II) XINPUT: Adding extended input device "SIGMACHIP Usb Mouse" (type: MOUSE, id 8)
[    36.966] (II) evdev: SIGMACHIP Usb Mouse: initialized for relative axes.
[    36.967] (**) SIGMACHIP Usb Mouse: (accel) keeping acceleration scheme 1
[    36.967] (**) SIGMACHIP Usb Mouse: (accel) acceleration profile 0
[    36.967] (**) SIGMACHIP Usb Mouse: (accel) acceleration factor: 2.000
[    36.967] (**) SIGMACHIP Usb Mouse: (accel) acceleration threshold: 4
[    36.967] (II) config/udev: Adding input device SIGMACHIP Usb Mouse (/dev/input/mouse0)
[    36.967] (II) No input driver specified, ignoring this device.
[    36.967] (II) This device may have been added with another device file.
[    36.968] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event2)
[    36.968] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[    36.968] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[    36.968] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[    36.968] (**) AT Translated Set 2 keyboard: always reports core events
[    36.968] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event2"
[    36.968] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
[    36.968] (--) evdev: AT Translated Set 2 keyboard: Found keys
[    36.968] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
[    36.968] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input2/event2"
[    36.968] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 9)
[    36.968] (**) Option "xkb_rules" "evdev"
[    36.968] (**) Option "xkb_model" "evdev"
[    36.968] (**) Option "xkb_layout" "es"
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1225
Location: 42.68n 85.41w

PostPosted: Sun Jul 14, 2013 6:46 am    Post subject: Reply with quote

mkultra@mksrv [ ~ ]$ gedit
mkultra@mksrv [ ~ ]$ sudo su git
git@mksrv /home/mkultra $ gedit
No protocol specified


want to know my thoughts??????

git@mksrv /home/mkultra $ echo $PATH
/home/git/.gem/ruby/1.9.1/bin:/bin:/usr/bin

mkultra@mksrv [ ~ ]$ gedit
#works fine
mkultra@mksrv [ ~ ]$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.3:/usr/games/bin

looks like its in other distributions... here's what arch has to say about it. https://bbs.archlinux.org/viewtopic.php?id=122848
_________________
cat /etc/*-release
Funtoo Linux - baselayout 2.2.0
consider this warning no. 1
http://ecx.images-amazon.com/images/I/81Ku-vxIb3L._SL1500_.jpg
http://wiki.gentoo.org/wiki/Special:Contributions/666threesixes666
Back to top
View user's profile Send private message
sifosvaca
n00b
n00b


Joined: 09 Nov 2002
Posts: 21

PostPosted: Mon Jul 15, 2013 9:03 am    Post subject: Reply with quote

Thank you, I'm not sure if that archlinux link is describing the same problem, they where getting the same error but not in the same situation. Exporting XAUTHORITY did nothing.
I'm not doing anything with xrandr or git, just starting normal X apps like xterm in the local machine with the same user that started X. Everything works fine for some time (usually a couple of hours or so) then all of a sudden I can no longer start X apps...
My $PATH, btw, stays the same before and after the b0rking.

Code:

$ echo $PATH
/home/joan/bin:/usr/local/bin:/usr/bin:/bin:/home/joan/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.3:/usr/x86_64-pc-linux-gnu/avr/gcc-bin/4.7.3:/usr/games/bin
Back to top
View user's profile Send private message
georg.mayr
n00b
n00b


Joined: 22 Oct 2004
Posts: 2

PostPosted: Wed Jul 17, 2013 9:39 am    Post subject: Reply with quote

I am also having the problem that I cannot use any programs that rely on X after a certain time.
I found out why: my hostname is being changed from just the short name, which is in /etc/conf.d/hostname to the fully qualified domain name, i.e. the short name PLUS the domain name, e.g. host.this.domain.com
This happens after some time. What I have not found out: WHICH program resets my hostname.
I suspect wicd but do not know how to confirm that.

My simple workaround is to do
as root (or otherwise sudo) whenever access to X server does not work:

Code:
hostname SHORTHOSTNAME
Back to top
View user's profile Send private message
sifosvaca
n00b
n00b


Joined: 09 Nov 2002
Posts: 21

PostPosted: Wed Jul 17, 2013 10:33 am    Post subject: Reply with quote

Hey, I just checked (rebooted) and I can confirm the hostname change. Will try your workaround as soon as the problem appears.
However, I don't have 'wicd' installed, so we need another suspect...
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1364

PostPosted: Wed Jul 17, 2013 10:56 am    Post subject: Reply with quote

Have you tried DISPLAY=":0" instead of DISPLAY=":0.0"? (For the other user, swap these) Also, did you try `xhost +` to enable all hosts (for debugging purposes)?

Hostname could change due to /etc/init.d/hostname I think; or otherwise, some DHCP related script might be changing it.
Back to top
View user's profile Send private message
sifosvaca
n00b
n00b


Joined: 09 Nov 2002
Posts: 21

PostPosted: Wed Jul 17, 2013 11:28 am    Post subject: Reply with quote

I did try 'sudo xhost +' on the previous boot, and it works, you can start programs after the hostname has changed, though I hadn't realized about the hostname change until georg.mayr's post.
The DISPLAY variable stays the same all the time, I tried to specify DISPLAY=":0", didn't tried DISPLAY=":0.0".
Back to top
View user's profile Send private message
sifosvaca
n00b
n00b


Joined: 09 Nov 2002
Posts: 21

PostPosted: Wed Jul 17, 2013 6:11 pm    Post subject: Reply with quote

5 hours ago I masked =net-misc/dhcpcd-6.0.2, downgraded to =net-misc/dhcpcd-5.99.7-r1 and the problem seems to be gone. I hope.
I think something in =net-misc/dhcpcd-6.0.2 was changing the hostname.
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1364

PostPosted: Wed Jul 17, 2013 7:39 pm    Post subject: Reply with quote

sifosvaca wrote:
5 hours ago I masked =net-misc/dhcpcd-6.0.2, downgraded to =net-misc/dhcpcd-5.99.7-r1 and the problem seems to be gone. I hope.
I think something in =net-misc/dhcpcd-6.0.2 was changing the hostname.


Can you please file that as a bug at https://bugs.gentoo.org?
Back to top
View user's profile Send private message
sifosvaca
n00b
n00b


Joined: 09 Nov 2002
Posts: 21

PostPosted: Wed Jul 17, 2013 8:29 pm    Post subject: Reply with quote

I wonder if this is the same bug: https://bugs.gentoo.org/show_bug.cgi?id=477224
Back to top
View user's profile Send private message
yumyum
n00b
n00b


Joined: 06 Nov 2008
Posts: 38
Location: Iceland

PostPosted: Sun Jul 21, 2013 1:31 pm    Post subject: Reply with quote

I've got my answers, thanks everyone. Going to mark this as solved.
_________________
Would you mind telling me why there is ricearoni in my coffee!?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum