FedoraForum.org - Fedora Support Forums and Community
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2004
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Fedup from F20 to F21 fails to deliver. Graphical mode doesnt work. Black screen.

    Fedup from F20 to F21 otherwise went well.
    fedup was used to upgrade to F21 Workstation system.

    When booting to gaphical mode, only black screen appears. No mouse pointer, no keyboard. Hitting CTRL+ALT+BACKSPACE just restarts something, but still black.

    Xorg.0.log does not show anything helpful. It seems to recognize keyboard and mouse from the system below, so does not use own X input drivers, I think.

    Mouse and keyboard are working fine in Virtual Consoles, VCs.

    When after leaving graphical mode (init 3) startx is run as a normal user, X starts with minimal mode. Seems like not even metacity works and starts. .xinitrc has `exec metacity` in the last line, so it should start.
    xconsole shows line: Çould not open console'

    Edit: Openbox can be run, so gnome-terminal, can start terminal windows in X now. xterm was not installed so it didnt work.
    If instead metacity or gnome-shell is there in the .xinitrc at the last line. They are run, seen in the process list, but nothing appears on X screen, just gnome-terminal and xconsole, plain X. At least with Openbox I get context menu on screen area with mouse button 2.


    Any idea what is wrong and where to find some error messages or something?

    > var > log > gdm > directory is empty, nothing has come there after I deleted the old log files there.

    Ány idea how to fix this or debug further? F20 used to run fine and it was updated from F19 also with fedup then.

    (Well, another thing which does not work is keyboard is not working during boot. Fedora has removed hid-lenovo-tpkbd.ko from modules. Why?)
    See also: http://forums.fedoraforum.org/showthread.php?t=298745
    Last edited by zimon; 9th February 2015 at 10:41 PM. Reason: another complain, keyboard not supported anymore, was in F20

  2. #2
    Join Date
    Sep 2004
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedup from F20 to F21 fails to deliver. Graphical mode doesnt work. Black screen.

    It seems to be GNOME problem.

    I did:
    # yum -y groupinstall lxde-desktop

    Then, to one luser account .xinitrc:
    Code:
    xrdb -load $HOME/.Xresources &
               gnome-terminal &
               exec startlxde
    And as in that luser: # startx

    I now at least got LXDE-system and WM working. Better than plain X with openbox.

    But still, doing "systemctl restart gdm", which tries to restart Fedora GNOME Graphical system, it just gives black screen and nothing can be done there, but CTRL+ALT+BACKSPACE to restart it back to black screen.

    So somehow GNOME's starting sequence needs to be debbugged to see what fails. How?

  3. #3
    Join Date
    Sep 2004
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedup from F20 to F21 fails to deliver. Graphical mode doesnt work. Black screen.

    Well, looked again system log (journalctl -b 0):
    SELinux is preventing /usr/libexec/gnome-session-check-accelerated-helper from 'read, write' accesses on the chr_file nvidiactl.
    ...
    type=AVC msg=audit(1423477285.402:3035): avc: denied { read write } for pid=26770 comm="gnome-session-c" name="nvidiactl" dev="devtmpfs" ino=17195 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=chr_file permissive=0
    ...
    SELinux is preventing /usr/libexec/gnome-session-check-accelerated-helper from 'read, write' accesses on the chr_file nvidia0
    ...
    type=AVC msg=audit(1423481017.350:3371): avc: denied { read write } for pid=13162 comm="gnome-session-c" name="nvidia0" dev="devtmpfs" ino=17196 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=chr_file permissive=0
    Is there SELinux policy bug in my system but overall in Fedora or in nvidia-packages? (Yes I have nvidia kernel- and X-driver)

    What are the correct SELinux labels for /dev/nvidia0 and /dev/nvidiactl ?

    So I did:
    Code:
    # ls -lZ /dev/nvidiactl
    crw-rw-rw-. root root system_u:object_r:device_t:s0    /dev/nvidiactl
    
    # ls -lZ /usr/libexec/gnome-session-check-accelerated-helper
    -rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/libexec/gnome-session-check-accelerated-helper
    
    # semanage fcontext -a -t console_device_t /dev/nvidia0
    # semanage fcontext -a -t console_device_t /dev/nvidiactl
    # restorecon -v /dev/nvidia0
    # restorecon -v /dev/nvidiactl
    After that starting gdm (or going to init level 5, Graphical mod) did not complain anymore about those AVCs. But still it did not help, only black screen comes up when gdm starts.

    There is still at least one complain found in system log now:
    Code:
    Feb 09 13:43:50 localhost gdm-launch-environment][6189]: pam_unix(gdm-launch-environment:session): session opened for user gdm by (uid=0)
    Feb 09 13:43:50 localhost org.a11y.Bus[6197]: Activating service name='org.a11y.atspi.Registry'
    Feb 09 13:43:50 localhost org.a11y.Bus[6197]: Successfully activated service 'org.a11y.atspi.Registry'
    Feb 09 13:43:50 localhost org.a11y.atspi.Registry[6205]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
    Feb 09 13:43:50 localhost org.a11y.atspi.Registry[6205]: Xlib:  extension "XEVIE" missing on display ":0".
    Feb 09 13:43:50 localhost gnome-session[6193]: Entering running state
    Feb 09 13:43:50 localhost gnome-session[6193]: (gnome-settings-daemon:6216): color-plugin-WARNING **: failed to add user icc: Error creating directory: Permission denied
    Feb 09 13:43:50 localhost dbus[1427]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service'
    Feb 09 13:43:50 localhost systemd[1]: Starting Locale Service...
    What is with that "user icc" ?

    Additional info:
    Code:
    # rpm -qa "*nvidia*"
    xorg-x11-drv-nvidia-304xx-libs-304.125-1.fc21.i686
    nvidia-xconfig-319.32-1.fc19.x86_64
    xorg-x11-drv-nvidia-304xx-304.125-1.fc21.x86_64
    kmod-nvidia-304xx-3.18.5-201.fc21.x86_64-304.125-1.fc21.6.x86_64
    kmod-nvidia-304xx-304.125-1.fc21.7.x86_64
    akmod-nvidia-304xx-304.125-1.fc21.1.x86_64
    nvidia-settings-319.32-1.fc19.x86_64
    kmod-nvidia-304xx-3.18.6-200.fc21.x86_64-304.125-1.fc21.7.x86_64
    kmod-nvidia-304xx-3.18.5-101.fc20.x86_64-304.123-1.fc20.25.x86_64
    xorg-x11-drv-nvidia-304xx-libs-304.125-1.fc21.x86_64
    See also:
    http://forums.fedoraforum.org/showpo...8&postcount=49
    Last edited by zimon; 17th February 2015 at 05:01 PM.

  4. #4
    Join Date
    Sep 2004
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedup from F20 to F21 fails to deliver. Graphical mode doesnt work. Black screen.

    Well, no luck.
    I installed kdm and then disabled gdm.
    Code:
    # yum -y install kdm
    # systemctl disable gdm
    # systemctl enable kdm
    Now logging in works with kdm. Mouse and keyboard work fine. When gdm was used no keyboard, no mouse, no login window.

    If GNOME or "GNOME traditional" are chosen when logged in now from kdm login window, they do not work. It takes awhile, then says:
    "Oh no! Something has gone wrong. A problem has occured and the system can't recover. All extensions have been disabled as a precaution. [Log Out]"
    Mouse pointer is not shown. Keyboard is kind of working, because when ENTER is hit, it logs out and goes back to kdm login screen.

    If in kdm login screen LXDE desktop or any other but GNOME is chosen, it works.

    How to debug what is wrong with GNOME? It used to work perfectly in f20. fedup went without errors. A few GNOME rpm packages I've reinstalled just to be sure with "yum reinstall", but no luck, have not helped.


    /var/lib/gdm/.config/gnome-session/saved-session/ is empty.
    also /home/luser/.config/gnome-session/saved-session is empty.

    "rpm -V gnome-session gdm gnome-session gnome-shell" shows everything should be OK.

    How to get some error messages out what is wrong?

    Somehow any gnome-related software fails now to recognize mouse, when KDM, LXDE dont have any problem.

  5. #5
    Join Date
    Sep 2004
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedup from F20 to F21 fails to deliver. Graphical mode doesnt work. Black screen.

    Tried again. LXDE and KDE works as normal. GNOME or GNOME (Classic) do not work. Using KDM because GDM does not work.

    Maybe related to fact when GNOME session is tried to be started, there is no mouse pointer nor keyboard seem to work.

    I even tried to remove all other mice, leaving just one, because I have 3 different type of connected, but it did not fix GNOME problem.

    Xorg.0.log doesn't really give hints. The same "hints" do not seem to cause any problems with KDE and LXDE, but here they are:

    (had to be truncated to fit in 10000 chars limit)
    Code:
    [513247.895] 
    X.Org X Server 1.16.3
    [513247.895] Build Date: 31 January 2015  11:23:27PM
    [513247.895] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Feb 20 14:24:32 2015
    [513247.899] (==) Using config file: "/etc/X11/xorg.conf"
    [513247.899] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [513247.899] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    [513247.899] (==) ServerLayout "Default Layout"
    [513247.899] (**) |-->Screen "Screen0" (0)
    [513247.899] (**) |   |-->Monitor "Monitor0"
    [513247.899] (**) |   |-->Device "Device0"
    [513247.899] (**) |-->Input Device "Keyboard0"
    [513247.899] (**) |-->Input Device "Mouse0"
    
    [513247.899] (**) ModulePath set to "/usr/lib64/nvidia-304xx/xorg,/usr/lib64/xorg/modules"
    [513247.899] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
    [513247.899] (WW) Disabling Keyboard0
    [513247.899] (WW) Disabling Mouse0
    [513247.899] (II) Loader magic: 0x81de40
    [513247.899] (II) Module ABI versions:
    [513247.899] 	X.Org ANSI C Emulation: 0.4
    [513247.899] 	X.Org Video Driver: 18.0
    [513247.899] 	X.Org XInput driver : 21.0
    [513247.899] 	X.Org Server Extension : 8.0
    [513247.903] (EE) systemd-logind: failed to get session: PID 7400 does not belong to any known session
    
    [513247.905] (WW) "glamoregl" will not be loaded unless you've specified it to be loaded elsewhere.
    [
    [513248.481] (II) config/udev: Adding input device Power Button (/dev/input/event1)
    ....
    
    [513248.501] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event16)
    [513248.501] (II) No input driver specified, ignoring this device.
    [513248.501] (II) This device may have been added with another device file.
    [513248.502] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=7 (/dev/input/event17)
    [513248.502] (II) No input driver specified, ignoring this device.
    [513248.502] (II) This device may have been added with another device file.
    [513248.502] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=8 (/dev/input/event18)
    [513248.502] (II) No input driver specified, ignoring this device.
    [513248.502] (II) This device may have been added with another device file.
    [513248.502] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=9 (/dev/input/event19)
    [513248.502] (II) No input driver specified, ignoring this device.
    [513248.502] (II) This device may have been added with another device file.
    [513248.502] (II) config/udev: Adding input device Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint (/dev/input/event21)
    [513248.502] (**) Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint: Applying InputClass "evdev keyboard catchall"
    [513248.502] (II) Using input driver 'evdev' for 'Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint'
    [513248.502] (**) Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint: always reports core events
    [513248.502] (**) evdev: Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint: Device: "/dev/input/event21"
    [513248.503] (--) evdev: Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint: Vendor 0x17ef Product 0x6009
    [513248.503] (--) evdev: Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint: Found keys
    [513248.503] (II) evdev: Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint: Configuring as keyboard
    [513248.503] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb5/5-1/5-1.3/5-1.3.3/5-1.3.3:1.0/0003:17EF:6009.0001/input/input24/event21"
    [513248.503] (II) XINPUT: Adding extended input device "Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint" (type: KEYBOARD, id 8)
    [513248.503] (**) Option "xkb_rules" "evdev"
    [513248.503] (**) Option "xkb_model" "pc104"
    [513248.503] (**) Option "xkb_layout" "us"
    ....
    [513248.504] (II) config/udev: Adding input device Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint (/dev/input/js0)
    [513248.504] (II) No input driver specified, ignoring this device.
    [513248.504] (II) This device may have been added with another device file.
    [513248.504] (II) config/udev: Adding input device Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint (/dev/input/mouse2)
    [513248.504] (II) No input driver specified, ignoring this device.
    [513248.504] (II) This device may have been added with another device file.
    [513248.504] (II) config/udev: Adding input device NOVATEK USB Keyboard (/dev/input/event5)
    [513248.504] (**) NOVATEK USB Keyboard: Applying InputClass "evdev keyboard catchall"
    [513248.504] (II) Using input driver 'evdev' for 'NOVATEK USB Keyboard'
    [513248.504] (**) NOVATEK USB Keyboard: always reports core events
    [513248.505] (**) evdev: NOVATEK USB Keyboard: Device: "/dev/input/event5"
    [513248.505] (--) evdev: NOVATEK USB Keyboard: Vendor 0x603 Product 0xf2
    [513248.505] (--) evdev: NOVATEK USB Keyboard: Found keys
    [513248.505] (II) evdev: NOVATEK USB Keyboard: Configuring as keyboard
    [513248.505] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb5/5-1/5-1.3/5-1.3.7/5-1.3.7:1.0/0003:0603:00F2.0006/input/input8/event5"
    [513248.505] (II) XINPUT: Adding extended input device "NOVATEK USB Keyboard" (type: KEYBOARD, id 10)
    [513248.505] (**) Option "xkb_rules" "evdev"
    [513248.505] (**) Option "xkb_model" "pc104"
    [513248.505] (**) Option "xkb_layout" "us"
    [513248.505] (II) config/udev: Adding input device NOVATEK USB Keyboard (/dev/input/event6)
    [513248.505] (**) NOVATEK USB Keyboard: Applying InputClass "evdev keyboard catchall"
    [513248.505] (II) Using input driver 'evdev' for 'NOVATEK USB Keyboard'
    [513248.505] (**) NOVATEK USB Keyboard: always reports core events
    [513248.505] (**) evdev: NOVATEK USB Keyboard: Device: "/dev/input/event6"
    [513248.505] (--) evdev: NOVATEK USB Keyboard: Vendor 0x603 Product 0xf2
    [513248.505] (--) evdev: NOVATEK USB Keyboard: Found 20 mouse buttons
    [513248.505] (--) evdev: NOVATEK USB Keyboard: Found keys
    [513248.505] (II) evdev: NOVATEK USB Keyboard: Forcing relative x/y axes to exist.
    [513248.505] (II) evdev: NOVATEK USB Keyboard: Configuring as mouse
    [513248.505] (II) evdev: NOVATEK USB Keyboard: Configuring as keyboard
    [513248.505] (**) evdev: NOVATEK USB Keyboard: YAxisMapping: buttons 4 and 5
    [513248.505] (**) evdev: NOVATEK USB Keyboard: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    [513248.505] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb5/5-1/5-1.3/5-1.3.7/5-1.3.7:1.1/0003:0603:00F2.0007/input/input9/event6"
    [(truncated alot)
    [514786.248] (EE) Server terminated successfully (0). Closing log file.
    There is many " (II) No input driver specified, ignoring this device." lines.
    And:
    [513247.899] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
    [513247.899] (WW) Disabling Keyboard0
    [513247.899] (WW) Disabling Mouse0

    Also only one clear error (EE):
    [513247.903] (EE) systemd-logind: failed to get session: PID 7400 does not belong to any known session

    ...those all also come with LXDE and LDE, but there it does not matter. It seems really a GNOME problem, not X caused one.

    One whole Xorg.0.log is there:
    http://pastebin.com/sn3897W5
    Last edited by zimon; 21st February 2015 at 05:33 AM. Reason: Pointing out some lines in Xorg.0.log

  6. #6
    Join Date
    Sep 2004
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedup from F20 to F21 fails to deliver. Graphical mode doesnt work. Black screen.

    Got Classic GNOME and "normal" GNOME working again.

    A guess was, it has something to do with permissions to access mouse and keyboard.

    What I did, was:
    Code:
    sudo chmod -R o+rw /dev/input
    Then tried to start Gnome Classic from kdm. It worked!

    Then stopped kdm, started gdm and also "normal" Gnome worked!

    Rebooted, now /dev/input/* have permission reset and no "others" have access to them.
    But still, gdm works, Gnome Classic and Gnome "normal" works.

    What I also did afterwards, was to dnf group remove "MATE Desktop". That was a mistake. It removed mupltiple packages which are essentials for "Fedora Workstation" and "LXDE Desktop" groups. And those groups cannot be reinstalled. The system claims those groups are already installed. There is no dnf group reinstall command.

    So manually installed lots of gnome- and lxde-packages, but I do not think it has to do about getting Gnome to work, because Gnome started to work before I did that dnf group remove "MATE Desktop"

    Wayland Gnome does not still work. When I log in, it just quickly goes black screen then returns to login screen.
    I haven't tried that chmod -R trick with Wayland Gnome, yet. Maybe it has the same problem.

Similar Threads

  1. Mouse and Keyboard doesnt work at login screen
    By Memysabu in forum Using Fedora
    Replies: 2
    Last Post: 8th April 2010, 12:04 PM
  2. Fedora 10, Anaconda / graphical install black screen
    By chem in forum Installation, Upgrades and Live Media
    Replies: 23
    Last Post: 12th January 2010, 06:54 AM
  3. X Window Welcome Screen doesnt work
    By DragonView in forum Using Fedora
    Replies: 2
    Last Post: 3rd August 2007, 03:04 PM
  4. Fedora Core 5 graphical mode installation don't work
    By Dj_Wolf in forum Installation, Upgrades and Live Media
    Replies: 5
    Last Post: 23rd August 2006, 08:56 AM
  5. Graphical bug. Black screen+3 vertical color lines
    By TrashLock in forum Using Fedora
    Replies: 8
    Last Post: 7th May 2005, 03:43 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •