shivanandvp
Posts: 2
Joined: Tue Jun 14, 2016 12:18 am

X Session is not working

Tue Jun 14, 2016 12:27 am

I am unable to start an X Session on my laptop. These are the steps I followed:
1) Started the Xming server on my laptop running Windows 10
2) Logged in to Raspberry Pi through PuTTy using a LAN cable. The terminal starts
3) ran lxsession

The following messages are displayed:

Code: Select all

pi@raspberrypi ~ $ lxsession
** Message: main.vala:99: Session is (null)
** Message: main.vala:100: DE is (null)
** Message: main.vala:104: No session set, fallback to LXDE session
** Message: main.vala:110: No desktop environnement set, fallback to LXDE
** Message: main.vala:131: log directory: /home/pi/.cache/lxsession/LXDE
** Message: main.vala:132: log path: /home/pi/.cache/lxsession/LXDE/run.log
when I check the log in another puTTY terminal, here is what I see:

Code: Select all

pi@raspberrypi ~ $ cat /home/pi/.cache/lxsession/LXDE/run.log
** Message: environement.vala:58: Exporting primary_variable
** Message: environement.vala:59: desktop_environnement XDG_CURRENT_DESKTOP
** Message: environement.vala:149: confir_dirs is null, export : /etc/xdg
** Message: environement.vala:183: Exporting XDG_CONFIG_DIRS
** Message: environement.vala:190: data_dirs is null, export : /usr/local/share:/usr/share:/usr/share/gdm:/var/lib/menu-xdg
** Message: environement.vala:224: Exporting XDG_DATA_DIRS
** Message: utils.vala:68: User config used : /home/pi/.config/lxsession/LXDE/desktop.conf
** Message: utils.vala:89: Final file used : /home/pi/.config/lxsession/LXDE/desktop.conf
** Message: settings.vala:527: Key file does not have key 'iGtk/ColorScheme'
** Message: settings.vala:527: Key file does not have key 'windows_manager/extras'
** Message: settings.vala:527: Key file does not have key 'panel/command'
** Message: settings.vala:527: Key file does not have key 'dock/command'
** Message: settings.vala:527: Key file does not have key 'file_manager/command'
** Message: settings.vala:527: Key file does not have key 'desktop_manager/command'
** Message: settings.vala:527: Key file does not have key 'launcher_manager/autostart'
** Message: settings.vala:527: Key file does not have key 'composite_manager/command'
** Message: settings.vala:527: Key file does not have key 'im1/command'
** Message: settings.vala:527: Key file does not have key 'im2/command'
** Message: settings.vala:527: Key file does not have key 'widget1/command'
** Message: settings.vala:527: Key file does not have key 'notification/command'
** Message: settings.vala:527: Key file does not have key 'keybindings/command'
** Message: settings.vala:527: Key file does not have key 'screensaver/command'
** Message: settings.vala:527: Key file does not have key 'power_manager/command'
** Message: settings.vala:527: Key file does not have key 'audio_manager/command'
** Message: settings.vala:527: Key file does not have key 'workspace_manager/command'
** Message: settings.vala:527: Key file does not have key 'screenshot_manager/command'
** Message: settings.vala:527: Key file does not have key 'message_manager/command'
** Message: settings.vala:527: Key file does not have key 'upgrade_manager/command'
** Message: settings.vala:527: Key file does not have key 'upstart_user_session'
** Message: settings.vala:527: Key file does not have key 'proxy_manager/http'
** Message: settings.vala:527: Key file does not have key 'a11y/command'
** Message: settings.vala:527: Key file does not have key 'xrandr/command'
** Message: settings.vala:527: Key file does not have key 'network_gui/command'
** Message: settings.vala:527: Key file does not have key 'webbrowser/command'
** Message: settings.vala:527: Key file does not have key 'email/command'
** Message: settings.vala:527: Key file does not have key 'pdf_reader/command'
** Message: settings.vala:527: Key file does not have key 'video_player/command'
** Message: settings.vala:527: Key file does not have key 'audio_player/command'
** Message: settings.vala:527: Key file does not have key 'images_display/command'
** Message: settings.vala:527: Key file does not have key 'text_editor/command'
** Message: settings.vala:527: Key file does not have key 'archive/command'
** Message: settings.vala:527: Key file does not have key 'charmap/command'
** Message: settings.vala:527: Key file does not have key 'calculator/command'
** Message: settings.vala:527: Key file does not have key 'spreadsheet/command'
** Message: settings.vala:527: Key file does not have key 'bittorent/command'
** Message: settings.vala:527: Key file does not have key 'document/command'
** Message: settings.vala:527: Key file does not have key 'webcam/command'
** Message: settings.vala:527: Key file does not have key 'burn/command'
** Message: settings.vala:527: Key file does not have key 'notes/command'
** Message: settings.vala:527: Key file does not have key 'disk_utility/command'
** Message: settings.vala:527: Key file does not have key 'tasks/command'
** Message: settings.vala:527: Key file does not have group 'Keymap'
** Message: settings.vala:527: Key file does not have key 'laptop_mode'
** Message: settings.vala:527: Key file does not have key 'gnome'
** Message: settings.vala:527: Key file does not have group 'Updates'
** Message: settings.vala:527: Key file does not have key 'type'
** Message: settings.vala:449: Monitoring: /home/pi/.config/lxsession/LXDE/desktop.conf
** Message: settings.vala:453: Desktop file is already in config home, do nothing
** Message: environement.vala:79: Exporting variable
** Message: environement.vala:80: desktop_environnement XDG_CURRENT_DESKTOP
** Message: environement.vala:176: custom_config :
** Message: environement.vala:177: config_dirs :/etc/xdg
** Message: environement.vala:178: confir_dirs not null, export : /etc/xdg
** Message: environement.vala:183: Exporting XDG_CONFIG_DIRS
** Message: environement.vala:217: custom_data :
** Message: environement.vala:218: data_dirs :/usr/local/share:/usr/share:/usr/share/gdm:/var/lib/menu-xdg
** Message: environement.vala:219: data_dirs not null, export : /usr/local/share:/usr/share:/usr/share/gdm:/var/lib/menu-xdg
** Message: environement.vala:224: Exporting XDG_DATA_DIRS
** Message: utils.vala:79: Config system location : /etc/xdg/lxsession/LXDE
** Message: utils.vala:85: System system path location : /etc/xdg/lxsession/LXDE/conffiles.conf
** Message: utils.vala:89: Final file used : /etc/xdg/lxsession/LXDE/conffiles.conf
** Message: options.vala:164: Activate xsettings_manager build-in
** Message: utils.vala:68: User config used : /home/pi/.config/lxsession/LXDE/desktop.conf
** Message: utils.vala:89: Final file used : /home/pi/.config/lxsession/LXDE/desktop.conf
** Message: app.vala:717: polkit separate
** Message: app.vala:717: polkit separate
** Message: app.vala:76: Launching lxpolkit
** Message: utils.vala:68: User config used : /home/pi/.config/lxsession/LXDE/autostart
** Message: utils.vala:89: Final file used : /home/pi/.config/lxsession/LXDE/autostart
** Message: autostart.vala:42: Autostart path : /home/pi/.config/lxsession/LXDE/autostart
** Message: app.vala:76: Launching lxpanel
** Message: app.vala:76: Launching pcmanfm
Obt-Message: Xinerama extension is not present on the server

** (lxsession:2540): WARNING **: app.vala:86: Failed to execute child process "xscreensaver" (No such file or directory)

** (lxsession:2540): WARNING **: app.vala:87: Error when launching xscreensaver
** Message: options.vala:107: Create build-in Clipboard
Another clipboard manager is already running.** Message: main.vala:429: Check keymap_mode (null)
** Message: app.vala:76: Launching /usr/bin/ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-BgvuV3de1VPg/agent.2554; export SSH_AUTH_SOCK;
SSH_AGENT_PID=2556; export SSH_AGENT_PID;
echo Agent pid 2556;
** Message: app.vala:130: /usr/bin/ssh-agent exit with this type of exit: 0

** (lxsession:2540): WARNING **: main.vala:486: Could not aquire name

There is already an instance of LXPanel.  Now to exit
** Message: app.vala:130: pcmanfm exit with this type of exit: 0
** Message: app.vala:139: Exit normal, don't reload
** Message: app.vala:130: lxpanel exit with this type of exit: 256
** Message: app.vala:145: Exit normal, don't reload
Openbox-Message: A window manager is already running on screen 0
** Message: app.vala:343: openbox exit with this type of exit: 0

** Message: app.vala:359: Exit normal, don't reload
pi@raspberrypi ~ $
No GUI windows open up. Am I doing something wrong?

User avatar
B.Goode
Posts: 14818
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: X Session is not working

Tue Jun 14, 2016 5:16 am

Use

Code: Select all

startlxde-pi
instead.

Romonga
Posts: 123
Joined: Mon May 09, 2016 7:09 pm
Location: Montgomery Il

Re: X Session is not working

Tue Jun 14, 2016 1:29 pm

What are you using to SSH into the PI. Did you set the X forwarding on? If you did not pass the correct CLI argument you will receive the error you seen.

The pi has X Forwarding on by default, however you need to tell the ssh client that you plan on using X over ssh.

ssh -X <MACHINE>

However, I notice you war using XMing as well as PuTTY. Please note the configuration category called SSH, you will see a section for X11, place a Check Mark on Enable X11 forwarding.
You can run, but you will only die tired.

shivanandvp
Posts: 2
Joined: Tue Jun 14, 2016 12:18 am

Re: X Session is not working

Tue Jun 14, 2016 3:44 pm

However, I notice you war using XMing as well as PuTTY. Please note the configuration category called SSH, you will see a section for X11, place a Check Mark on Enable X11 forwarding.
I do it every single time I connect using PuTTY. What do you think is the problem?

Romonga
Posts: 123
Joined: Mon May 09, 2016 7:09 pm
Location: Montgomery Il

Re: X Session is not working

Tue Jun 14, 2016 5:33 pm

shivanandvp wrote:
However, I notice you war using XMing as well as PuTTY. Please note the configuration category called SSH, you will see a section for X11, place a Check Mark on Enable X11 forwarding.
I do it every single time I connect using PuTTY. What do you think is the problem?
The error you are seeing reminded me of errors I see when I forget to start XMing, or where I don't provide the -X to ssh. outside of this I have no more advice for you.
You can run, but you will only die tired.

Return to “Troubleshooting”