Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Xorg won't start after kernel revert
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
shinjitumala
n00b
n00b


Joined: 07 Jun 2019
Posts: 7

PostPosted: Fri Jun 07, 2019 5:49 am    Post subject: [Solved] Xorg won't start after kernel revert Reply with quote

Hello,

I was tinkering around with the kernel so that I can use the HDMI port on my laptop.
Before installing the new kernel I backed up everything under
Code:
/boot/
then installed the new kernel.
As you would imagine, the new kernel failed to boot properly so I used my backup to revert the kernel and boot loader to their original state.
However, now
Code:
startx
refuses to work and gives an error.

I haven't found anything useful on google so far so I've come to ask.
Any help would be very much appreciated.

Xorg log:
Code:
[  1740.886]
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
[  1740.888] Build Operating System: Linux 4.19.44-gentoo x86_64 Gentoo
[  1740.888] Current Operating System: Linux FPRAlienwareM17 4.19.44-gentoo #1 SMP Sat Jun 1 14:17:20 JST 2019 x86_64
[  1740.888] Kernel command line: BOOT_IMAGE=/kernel-genkernel-x86_64-4.19.44-gentoo root=UUID=4ac2bacc-e1a0-4b3d-a791-5be11e3e9aeb ro init=/usr/lib/systemd/systemd
[  1740.889] Build Date: 07 June 2019  01:07:45PM
[  1740.889] 
[  1740.890] Current version of pixman: 0.38.4
[  1740.891]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[  1740.891] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1740.893] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Jun  7 13:10:44 2019
[  1740.893] (==) Using config directory: "/etc/X11/xorg.conf.d"
[  1740.894] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  1740.894] (==) No Layout section.  Using the first Screen section.
[  1740.894] (==) No screen section available. Using defaults.
[  1740.894] (**) |-->Screen "Default Screen Section" (0)
[  1740.894] (**) |   |-->Monitor "<default monitor>"
[  1740.894] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[  1740.894] (==) Automatically adding devices
[  1740.894] (==) Automatically enabling devices
[  1740.894] (==) Automatically adding GPU devices
[  1740.894] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  1740.894] (==) FontPath set to:
   /usr/share/fonts/misc/,
   /usr/share/fonts/TTF/,
   /usr/share/fonts/OTF/,
   /usr/share/fonts/Type1/,
   /usr/share/fonts/100dpi/,
   /usr/share/fonts/75dpi/
[  1740.894] (==) ModulePath set to "/usr/lib64/xorg/modules"
[  1740.894] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[  1740.894] (II) Loader magic: 0x55d9345e2d00
[  1740.894] (II) Module ABI versions:
[  1740.894]    X.Org ANSI C Emulation: 0.4
[  1740.894]    X.Org Video Driver: 24.0
[  1740.894]    X.Org XInput driver : 24.1
[  1740.894]    X.Org Server Extension : 10.0
[  1740.895] (++) using VT number 1

[  1740.896] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[  1740.898] (--) PCI:*(0@0:2:0) 8086:0416:1028:05aa rev 6, Mem @ 0xc1000000/4194304, 0xb0000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[  1740.898] (--) PCI: (1@0:0:0) 1002:6801:1028:05aa rev 0, Mem @ 0xa0000000/268435456, 0xc0000000/262144, I/O @ 0x00004000/256, BIOS @ 0x????????/131072
[  1740.898] (II) LoadModule: "glx"
[  1740.898] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[  1740.899] (II) Module glx: vendor="X.Org Foundation"
[  1740.899]    compiled for 1.20.4, module version = 1.0.0
[  1740.899]    ABI class: X.Org Server Extension, version 10.0
[  1740.899] (==) Matched intel as autoconfigured driver 0
[  1740.899] (==) Matched modesetting as autoconfigured driver 1
[  1740.899] (==) Matched fbdev as autoconfigured driver 2
[  1740.899] (==) Matched vesa as autoconfigured driver 3
[  1740.899] (==) Assigned the driver to the xf86ConfigLayout
[  1740.899] (II) LoadModule: "intel"
[  1740.899] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[  1740.899] (II) Module intel: vendor="X.Org Foundation"
[  1740.899]    compiled for 1.20.4, module version = 2.99.917
[  1740.899]    Module class: X.Org Video Driver
[  1740.899]    ABI class: X.Org Video Driver, version 24.0
[  1740.899] (II) LoadModule: "modesetting"
[  1740.899] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[  1740.899] (II) Module modesetting: vendor="X.Org Foundation"
[  1740.899]    compiled for 1.20.4, module version = 1.20.4
[  1740.899]    Module class: X.Org Video Driver
[  1740.899]    ABI class: X.Org Video Driver, version 24.0
[  1740.899] (II) LoadModule: "fbdev"
[  1740.899] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so
[  1740.899] (II) Module fbdev: vendor="X.Org Foundation"
[  1740.899]    compiled for 1.20.4, module version = 0.5.0
[  1740.899]    Module class: X.Org Video Driver
[  1740.899]    ABI class: X.Org Video Driver, version 24.0
[  1740.899] (II) LoadModule: "vesa"
[  1740.899] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
[  1740.899] (II) Module vesa: vendor="X.Org Foundation"
[  1740.899]    compiled for 1.20.4, module version = 2.4.0
[  1740.899]    Module class: X.Org Video Driver
[  1740.899]    ABI class: X.Org Video Driver, version 24.0
[  1740.899] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
   i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
   915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
   Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
   GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[  1740.900] (II) intel: Driver for Intel(R) HD Graphics
[  1740.900] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[  1740.900] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[  1740.900] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  1740.900] (II) FBDEV: driver for framebuffer: fbdev
[  1740.900] (II) VESA: driver for VESA chipsets: vesa
[  1740.901] (EE) open /dev/dri/card0: No such file or directory
[  1740.901] (WW) Falling back to old probe method for modesetting
[  1740.901] (EE) open /dev/dri/card0: No such file or directory
[  1740.901] (II) Loading sub module "fbdevhw"
[  1740.901] (II) LoadModule: "fbdevhw"
[  1740.901] (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
[  1740.902] (II) Module fbdevhw: vendor="X.Org Foundation"
[  1740.902]    compiled for 1.20.4, module version = 0.0.2
[  1740.902]    ABI class: X.Org Video Driver, version 24.0
[  1740.902] (EE) Unable to find a valid framebuffer device
[  1740.902] (WW) Falling back to old probe method for fbdev
[  1740.902] (II) Loading sub module "fbdevhw"
[  1740.902] (II) LoadModule: "fbdevhw"
[  1740.902] (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
[  1740.902] (II) Module fbdevhw: vendor="X.Org Foundation"
[  1740.902]    compiled for 1.20.4, module version = 0.0.2
[  1740.902]    ABI class: X.Org Video Driver, version 24.0
[  1740.902] (II) FBDEV(2): using default device
[  1740.902] (EE) Screen 0 deleted because of no matching config section.
[  1740.902] (II) UnloadModule: "modesetting"
[  1740.902] (EE) Screen 0 deleted because of no matching config section.
[  1740.902] (II) UnloadModule: "fbdev"
[  1740.902] (II) UnloadSubModule: "fbdevhw"
[  1740.902] (EE)
Fatal server error:
[  1740.902] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices
[  1740.902] (EE)
[  1740.902] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[  1740.902] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  1740.902] (EE)
[  1740.906] (EE) Server terminated with error (1). Closing log file.


lspci -v:
Code:
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
   Subsystem: Dell Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller
   Flags: bus master, fast devsel, latency 0
   Capabilities: [e0] Vendor Specific Information: Len=0c <?>

00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 16
   Bus: primary=00, secondary=01, subordinate=06, sec-latency=0
   I/O behind bridge: 00004000-00004fff [size=4K]
   Memory behind bridge: c0000000-c0ffffff [size=16M]
   Prefetchable memory behind bridge: 00000000a0000000-00000000afffffff [size=256M]
   Capabilities: [88] Subsystem: Dell Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller
   Capabilities: [80] Power Management version 3
   Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [a0] Express Root Port (Slot+), MSI 00
   Capabilities: [100] Virtual Channel
   Capabilities: [140] Root Complex Link
   Capabilities: [d94] #19
   Kernel driver in use: pcieport

00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06) (prog-if 00 [VGA controller])
   Subsystem: Dell 4th Gen Core Processor Integrated Graphics Controller
   Flags: bus master, fast devsel, latency 0
   Memory at c1000000 (64-bit, non-prefetchable) [size=4M]
   Memory at b0000000 (64-bit, prefetchable) [size=256M]
   I/O ports at 5000 [size=64]
   [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
   Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [d0] Power Management version 2
   Capabilities: [a4] PCI Advanced Features
   Kernel modules: i915

00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
   Subsystem: Dell Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
   Flags: bus master, fast devsel, latency 0
   Memory at c1910000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: [50] Power Management version 2
   Capabilities: [60] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00

00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05) (prog-if 30 [XHCI])
   Subsystem: Dell 8 Series/C220 Series Chipset Family USB xHCI
   Flags: bus master, medium devsel, latency 0, IRQ 25
   Memory at c1900000 (64-bit, non-prefetchable) [size=64K]
   Capabilities: [70] Power Management version 2
   Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
   Kernel driver in use: xhci_hcd
   Kernel modules: xhci_pci

00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
   Subsystem: Dell 8 Series/C220 Series Chipset Family MEI Controller
   Flags: bus master, fast devsel, latency 0
   Memory at c1918000 (64-bit, non-prefetchable) [size=16]
   Capabilities: [50] Power Management version 3
   Capabilities: [8c] MSI: Enable- Count=1/1 Maskable- 64bit+

00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05) (prog-if 20 [EHCI])
   Subsystem: Dell 8 Series/C220 Series Chipset Family USB EHCI
   Flags: bus master, medium devsel, latency 0, IRQ 16
   Memory at c191d000 (32-bit, non-prefetchable) [size=1K]
   Capabilities: [50] Power Management version 2
   Capabilities: [58] Debug port: BAR=1 offset=00a0
   Capabilities: [98] PCI Advanced Features
   Kernel driver in use: ehci-pci
   Kernel modules: ehci_pci

00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
   Subsystem: Dell 8 Series/C220 Series Chipset High Definition Audio Controller
   Flags: bus master, fast devsel, latency 0
   Memory at c1914000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: [50] Power Management version 2
   Capabilities: [60] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
   Capabilities: [100] Virtual Channel

00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 16
   Bus: primary=00, secondary=07, subordinate=07, sec-latency=0
   I/O behind bridge: 00002000-00002fff [size=4K]
   Memory behind bridge: 9fb00000-9fcfffff [size=2M]
   Prefetchable memory behind bridge: 000000009fd00000-000000009fefffff [size=2M]
   Capabilities: [40] Express Root Port (Slot+), MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: Dell 8 Series/C220 Series Chipset Family PCI Express Root Port
   Capabilities: [a0] Power Management version 3
   Kernel driver in use: pcieport

00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 18
   Bus: primary=00, secondary=08, subordinate=08, sec-latency=0
   I/O behind bridge: 00003000-00003fff [size=4K]
   Memory behind bridge: c1800000-c18fffff [size=1M]
   Prefetchable memory behind bridge: None
   Capabilities: [40] Express Root Port (Slot+), MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: Dell 8 Series/C220 Series Chipset Family PCI Express Root Port
   Capabilities: [a0] Power Management version 3
   Kernel driver in use: pcieport

00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d5) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 19
   Bus: primary=00, secondary=09, subordinate=09, sec-latency=0
   I/O behind bridge: None
   Memory behind bridge: c1700000-c17fffff [size=1M]
   Prefetchable memory behind bridge: None
   Capabilities: [40] Express Root Port (Slot+), MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: Dell 8 Series/C220 Series Chipset Family PCI Express Root Port
   Capabilities: [a0] Power Management version 3
   Kernel driver in use: pcieport

00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 (rev d5) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 16
   Bus: primary=00, secondary=0a, subordinate=0a, sec-latency=0
   I/O behind bridge: None
   Memory behind bridge: c1400000-c16fffff [size=3M]
   Prefetchable memory behind bridge: None
   Capabilities: [40] Express Root Port (Slot+), MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: Dell 8 Series/C220 Series Chipset Family PCI Express Root Port
   Capabilities: [a0] Power Management version 3
   Kernel driver in use: pcieport

00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05) (prog-if 20 [EHCI])
   Subsystem: Dell 8 Series/C220 Series Chipset Family USB EHCI
   Flags: bus master, medium devsel, latency 0, IRQ 19
   Memory at c191c000 (32-bit, non-prefetchable) [size=1K]
   Capabilities: [50] Power Management version 2
   Capabilities: [58] Debug port: BAR=1 offset=00a0
   Capabilities: [98] PCI Advanced Features
   Kernel driver in use: ehci-pci
   Kernel modules: ehci_pci

00:1f.0 ISA bridge: Intel Corporation HM87 Express LPC Controller (rev 05)
   Subsystem: Dell HM87 Express LPC Controller
   Flags: bus master, medium devsel, latency 0
   Capabilities: [e0] Vendor Specific Information: Len=0c <?>

00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05) (prog-if 01 [AHCI 1.0])
   Subsystem: Dell 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode]
   Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 24
   I/O ports at 5088 [size=8]
   I/O ports at 5094 [size=4]
   I/O ports at 5080 [size=8]
   I/O ports at 5090 [size=4]
   I/O ports at 5060 [size=32]
   Memory at c191b000 (32-bit, non-prefetchable) [size=2K]
   Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
   Capabilities: [70] Power Management version 3
   Capabilities: [a8] SATA HBA v1.0
   Kernel driver in use: ahci
   Kernel modules: ahci

00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
   Subsystem: Dell 8 Series/C220 Series Chipset Family SMBus Controller
   Flags: medium devsel
   Memory at c1919000 (64-bit, non-prefetchable) [size=256]
   I/O ports at 5040 [size=32]
   Kernel modules: i2c_i801

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Neptune XT [Radeon HD 8970M] (prog-if 00 [VGA controller])
   Subsystem: Dell Neptune XT [Radeon HD 8970M]
   Flags: fast devsel
   Memory at a0000000 (64-bit, prefetchable) [disabled] [size=256M]
   Memory at c0000000 (64-bit, non-prefetchable) [disabled] [size=256K]
   I/O ports at 4000 [disabled] [size=256]
   Expansion ROM at c0060000 [disabled] [size=128K]
   Capabilities: [48] Vendor Specific Information: Len=08 <?>
   Capabilities: [50] Power Management version 3
   Capabilities: [58] Express Legacy Endpoint, MSI 00
   Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
   Capabilities: [150] Advanced Error Reporting
   Capabilities: [270] #19
   Capabilities: [2b0] Address Translation Service (ATS)
   Capabilities: [2c0] Page Request Interface (PRI)
   Capabilities: [2d0] Process Address Space ID (PASID)
   Kernel modules: radeon

01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series]
   Subsystem: Dell Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series]
   Flags: bus master, fast devsel, latency 0
   Memory at c0040000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: [48] Vendor Specific Information: Len=08 <?>
   Capabilities: [50] Power Management version 3
   Capabilities: [58] Express Legacy Endpoint, MSI 00
   Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
   Capabilities: [150] Advanced Error Reporting

08:00.0 Ethernet controller: Qualcomm Atheros Killer E220x Gigabit Ethernet Controller (rev 10)
   Subsystem: Dell Killer E220x Gigabit Ethernet Controller
   Flags: bus master, fast devsel, latency 0, IRQ 18
   Memory at c1800000 (64-bit, non-prefetchable) [size=256K]
   I/O ports at 3000 [size=128]
   Capabilities: [40] Power Management version 3
   Capabilities: [58] Express Endpoint, MSI 00
   Capabilities: [c0] MSI: Enable- Count=1/16 Maskable+ 64bit+
   Capabilities: [d8] MSI-X: Enable+ Count=16 Masked-
   Capabilities: [100] Advanced Error Reporting
   Capabilities: [180] Device Serial Number ff-b0-15-1c-d4-81-d7-ff
   Kernel driver in use: alx

09:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
   Subsystem: Dell RTS5209 PCI Express Card Reader
   Flags: bus master, fast devsel, latency 0
   Memory at c1701000 (32-bit, non-prefetchable) [size=4K]
   Capabilities: [40] Power Management version 3
   Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [70] Express Endpoint, MSI 00
   Capabilities: [100] Advanced Error Reporting
   Capabilities: [140] Device Serial Number 00-00-00-01-00-4c-e0-00

09:00.1 SD Host controller: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
   Subsystem: Dell RTS5209 PCI Express Card Reader
   Flags: bus master, fast devsel, latency 0
   Memory at c1700000 (32-bit, non-prefetchable) [size=256]
   Capabilities: [80] Power Management version 3
   Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [b0] Express Endpoint, MSI 01
   Capabilities: [100] Advanced Error Reporting
   Capabilities: [140] Device Serial Number 00-00-00-01-00-4c-e0-00

0a:00.0 Network controller: Broadcom Inc. and subsidiaries BCM4352 802.11ac Wireless Network Adapter (rev 03)
   Subsystem: AzureWave BCM4352 802.11ac Wireless Network Adapter
   Flags: bus master, fast devsel, latency 0
   Memory at c1600000 (64-bit, non-prefetchable) [size=32K]
   Memory at c1400000 (64-bit, non-prefetchable) [size=2M]
   Capabilities: [48] Power Management version 3
   Capabilities: [58] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [68] Vendor Specific Information: Len=44 <?>
   Capabilities: [ac] Express Endpoint, MSI 00
   Capabilities: [100] Advanced Error Reporting
   Capabilities: [13c] Device Serial Number 24-0a-00-ff-ff-00-00-01
   Capabilities: [150] Power Budgeting <?>
   Capabilities: [160] Virtual Channel
   Capabilities: [1b0] Latency Tolerance Reporting
   Capabilities: [220] #15
   Kernel modules: bcma



Last edited by shinjitumala on Sat Jun 08, 2019 11:00 am; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Veteran
Veteran


Joined: 17 Sep 2010
Posts: 1956
Location: Frankfurt, Germany

PostPosted: Fri Jun 07, 2019 10:01 pm    Post subject: Reply with quote

Hi shinjitumala,

welcome to the Gentoo forums!

I can't tell you what went wrong. But maybe we can help you to get your new kernel up and running.
  1. Which bootloader do you use? Grub 2? How did you create its config file '/boot/grub/grub.cfg''? Did you run
    Code:
    grub-mkconfig -o /boot/grub/grub.cfg

    after you copied the new kernel to /boot?

  2. Please post the output of
    Code:
    ls -la /boot

  3. Please post the output of
    Code:
    emerge --info

  4. Please post your new kernel config (which didn't work) using wgetpaste.

  5. Thanks for posting Xorg.log and the output of 'lspci -v'. That's exactly what we need.
Mike
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7465
Location: Saint Amant, Acadiana

PostPosted: Fri Jun 07, 2019 10:21 pm    Post subject: Reply with quote

Code:
[  1740.901] (EE) open /dev/dri/card0: No such file or directory


That's your error. The kernel you are booting has no Intel DRM enabled (DRM_I915). Maybe you are booting wrong kernel? 'uname -a' will tell.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 18335

PostPosted: Fri Jun 07, 2019 11:05 pm    Post subject: Reply with quote

shinjitumala wrote:
However, now
Code:
startx
refuses to work and gives an error.
Since you're using startx manually, don't forget to verify permissions for /usr/bin/Xorg.
_________________
Don't even pause and ask them why. Turn around and say goodbye.
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1074
Location: Massachusetts USA

PostPosted: Sat Jun 08, 2019 3:21 am    Post subject: Reply with quote

Did you backup/restore files under /lib/modules/
Back to top
View user's profile Send private message
shinjitumala
n00b
n00b


Joined: 07 Jun 2019
Posts: 7

PostPosted: Sat Jun 08, 2019 3:49 am    Post subject: Reply with quote

Thank you for all the response! I just woke up so I'll start working on fixing my Xorg now.

mike155 wrote:
Hi shinjitumala,

welcome to the Gentoo forums!

I can't tell you what went wrong. But maybe we can help you to get your new kernel up and running.
  1. Which bootloader do you use? Grub 2? How did you create its config file '/boot/grub/grub.cfg''? Did you run
    Code:
    grub-mkconfig -o /boot/grub/grub.cfg

    after you copied the new kernel to /boot?

  2. Please post the output of
    Code:
    ls -la /boot

  3. Please post the output of
    Code:
    emerge --info

  4. Please post your new kernel config (which didn't work) using wgetpaste.

  5. Thanks for posting Xorg.log and the output of 'lspci -v'. That's exactly what we need.
Mike



  1. I used grub2. I ran /boot/grub/grub.cfg after the first time I failed to start Xorg.
    Just to clarify, this problem occurred when I was reverting to the old kernel because my new kernel failed to boot.
    I was hoping to continue to work on the new kernel using the old desktop environment because it's convenient.
    The reason the new kernel failed is probably because I did not use genkernel. Using the makefile never worked for me, for some reason... even though I followed the handbook.
    I will re-try that part later today and will post updates if I make any progress.

  2. Here is the output of:
    Code:
    ls -lah /boot

    I copied everything from the old /boot and put it back when trying to revert. So unless I made a grave error, this should be the same as when X was starting properly.
    Code:
    合計 28M
    drwxr-xr-x  4 root root 4.0K  1月  1  1970 .
    drwxr-xr-x 22 root root 4.0K  6月  1 15:30 ..
    drwxr-xr-x  3 root root 4.0K  6月  7 12:13 EFI
    -rwxr-xr-x  1 root root 4.3M  6月  7 12:13 System.map-4.19.44-gentoo
    -rwxr-xr-x  1 root root 2.9M  6月  7 12:13 System.map-genkernel-x86_64-4.19.44-gentoo
    -rwxr-xr-x  1 root root 116K  6月  7 12:13 config-4.19.44-gentoo
    drwxr-xr-x  6 root root 4.0K  6月  7 12:22 grub
    -rwxr-xr-x  1 root root 5.7M  6月  7 12:13 initramfs-genkernel-x86_64-4.19.44-gentoo
    -rwxr-xr-x  1 root root 5.4M  6月  7 12:13 kernel-genkernel-x86_64-4.19.44-gentoo
    -rwxr-xr-x  1 root root 9.4M  6月  7 12:13 vmlinuz-4.19.44-gentoo


  3. Here is the output of:
    Code:
    emerge --info

    Code:
    Portage 2.3.66 (python 3.6.5-final-0, default/linux/amd64/17.0/systemd, gcc-8.3.0, glibc-2.29-r2, 4.19.44-gentoo x86_64)
    =================================================================
    System uname: Linux-4.19.44-gentoo-x86_64-Intel-R-_Core-TM-_i7-4700MQ_CPU_@_2.40GHz-with-gentoo-2.6
    KiB Mem:    32837728 total,  31988596 free
    KiB Swap:          0 total,         0 free
    Timestamp of repository gentoo: Fri, 31 May 2019 14:00:01 +0000
    Head commit of repository gentoo: e88cca73b39de0a3e38e83ee6d0013ccafdafcc6
    sh bash 4.4_p23-r1
    ld GNU ld (Gentoo 2.31.1 p7) 2.31.1
    app-shells/bash:          4.4_p23-r1::gentoo
    dev-lang/perl:            5.28.2-r1::gentoo
    dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
    dev-util/cmake:           3.14.3::gentoo
    sys-apps/baselayout:      2.6-r1::gentoo
    sys-apps/sandbox:         2.13::gentoo
    sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
    sys-devel/automake:       1.16.1-r1::gentoo
    sys-devel/binutils:       2.31.1-r6::gentoo
    sys-devel/gcc:            8.3.0-r1::gentoo
    sys-devel/gcc-config:     2.0::gentoo
    sys-devel/libtool:        2.4.6-r3::gentoo
    sys-devel/make:           4.2.1-r4::gentoo
    sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
    sys-libs/glibc:           2.29-r2::gentoo
    Repositories:

    gentoo
        location: /usr/portage
        sync-type: rsync
        sync-uri: rsync://rsync.gentoo.org/gentoo-portage
        priority: -1000
        sync-rsync-extra-opts:
        sync-rsync-verify-jobs: 1
        sync-rsync-verify-metamanifest: yes
        sync-rsync-verify-max-age: 24

    ACCEPT_KEYWORDS="amd64"
    ACCEPT_LICENSE="* -@EULA"
    CBUILD="x86_64-pc-linux-gnu"
    CFLAGS="-O2 -pipe -march=native"
    CHOST="x86_64-pc-linux-gnu"
    CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
    CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
    CXXFLAGS="-O2 -pipe -march=native"
    DISTDIR="/usr/portage/distfiles"
    ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
    FCFLAGS="-O2 -pipe -march=native"
    FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
    FFLAGS="-O2 -pipe -march=native"
    GENTOO_MIRRORS="http://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ rsync://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/ https://ftp.jaist.ac.jp/pub/Linux/Gentoo/ rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
    LANG="ja_JP.utf8"
    LDFLAGS="-Wl,-O1 -Wl,--as-needed"
    MAKEOPTS="-j9"
    PKGDIR="/usr/portage/packages"
    PORTAGE_CONFIGROOT="/"
    PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
    PORTAGE_TMPDIR="/var/tmp"
    USE="acl amd64 amdgpu berkdb bzip2 cli crypt cxx dri fcitx4 fortran gdbm iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre pulseaudio readline seccomp ssl systemd tcpd udev unicode xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="radeonsi amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
    Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


  4. Here is the link to my kernel config file: http://dpaste.com/3HA24QY
    To give some context, I was in the process of trying to get my HDMI port to work so I can use 2 displays with my laptop. Apparently, I need to properly configure my hybrid GPUs in order to make them function. I hope that information helps.


Jaglover wrote:
Code:
[  1740.901] (EE) open /dev/dri/card0: No such file or directory


That's your error. The kernel you are booting has no Intel DRM enabled (DRM_I915). Maybe you are booting wrong kernel? 'uname -a' will tell.


Here is the output of:
Code:
uname -a

Code:
Linux FPRAlienwareM17 4.19.44-gentoo #1 SMP Sat Jun 1 14:17:20 JST 2019 x86_64 Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz GenuineIntel GNU/Linux


I'm not sure what it means at the moment. I will update the post if I find out something useful about it.

pjp wrote:
shinjitumala wrote:
However, now
Code:
startx
refuses to work and gives an error.
Since you're using startx manually, don't forget to verify permissions for /usr/bin/Xorg.


Here is the output of:
Code:
ls -lah /usr/bin/Xorg

Code:
-rwxr-xr-x 1 root root 273  6月  7 13:09 /usr/bin/Xorg

It seems that everyone can read and execute the file.

----------------------------------------------------------------------

Just in case, I will also post the output of:
Code:
dmesg

bpaste link: http://dpaste.com/2NVRXEA

I will be posting some updates if I make progress. Thank you again for the replies!

----------------------------------------------------------------------
EDIT00:
----------------------------------------------------------------------
jburns wrote:
Did you backup/restore files under /lib/modules/


Oh. Oh no. I did not. This is probably the reason it suddenly stopped booting. So I guess I have to make the new kernel work...
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 18335

PostPosted: Sat Jun 08, 2019 5:56 am    Post subject: Reply with quote

It needs suid set.

See Why is our xorg-server setuid, again? for general discussion.
_________________
Don't even pause and ask them why. Turn around and say goodbye.
Back to top
View user's profile Send private message
shinjitumala
n00b
n00b


Joined: 07 Jun 2019
Posts: 7

PostPosted: Sat Jun 08, 2019 11:00 am    Post subject: Reply with quote

pjp wrote:
It needs suid set.

See Why is our xorg-server setuid, again? for general discussion.


I see. I didn't know that. I will keep those information in mind when I run into problems relating to Xorg permissions in the future.
But for now, using
Code:
genconfig all --menuconfig
then changing the things that I want to change seems to have fixed the problem.

-------------

[Conclusion]

As Jaglover mentioned above,
the reason behind the error was because I only backed up the files under /boot and not the ones under /lib/modules
Therefore, my kernel was not able to detect some of the hardware that is needed to run Xorg.

Thank you for all the help guys.
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