LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-27-2022, 01:15 AM   #1
karthik_holla
Member
 
Registered: Jul 2016
Location: India
Distribution: slackware-15.0
Posts: 73

Rep: Reputation: Disabled
startx doesn't work


Startx doesn't load kde as soon as boot my laptop it gives an error after sometime.And only on the second time it loads my GUI.
Code:
waiting for X server to shutdown (II)Server terminated successfully (0).Closing log file.nable to connect to X server: Resource temporarily unavailableocol specified.N
xinit: server error
The result of lspci is
Code:
00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03)
00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03)
00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 (rev e3)
00:1c.2 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #3 (rev e3)
00:1c.3 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 (rev e3)
00:1c.4 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #5 (rev e3)
00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03)
00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03)
06:00.0 Network controller: Intel Corporation Wireless 3160 (rev 83)
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 07)

Last edited by karthik_holla; 02-27-2022 at 01:16 AM.
 
Old 02-27-2022, 02:11 AM   #2
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
What does the log says ? You could grep for EE or WW to get only the most relevent lines
 
Old 02-27-2022, 02:23 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,848

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
looks like it was started too early. but without details hard to say anything
 
Old 02-27-2022, 05:13 AM   #4
karthik_holla
Member
 
Registered: Jul 2016
Location: India
Distribution: slackware-15.0
Posts: 73

Original Poster
Rep: Reputation: Disabled
The result of cat /var/log/Xorg.0.log | grep EE
Code:
[   406.517] Current Operating System: Linux 192.168.1.6 5.15.19 #1 SMP PREEMPT Wed Feb 2 01:50:51 CST 2022 x86_64
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.

[   406.533] (WW) The directory "/usr/share/fonts/local" does not exist.
[   406.533] (WW) The directory "/usr/share/fonts/CID" does not exist.
[   406.545] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   406.545] (WW) Warning, couldn't open module fbdev
[   406.806] (II) Initializing extension MIT-SCREEN-SAVER
[   407.077] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:0EEF:C04D.0005/input/input26/event15"
[   407.077] (II) XINPUT: Adding extended input device "eGalax Inc. eGalaxTouch EXC3000-0367-44.00.00" (type: TOUCHSCREEN, id 12)
 
Old 02-27-2022, 08:15 AM   #5
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
You may need to express an "/sbin/modprobe (appropriate Intel GPU module)" in rc.d/rc.modules.local to insure it has loaded early or, if you use one, in initrd.
 
Old 05-31-2022, 02:14 AM   #6
karthik_holla
Member
 
Registered: Jul 2016
Location: India
Distribution: slackware-15.0
Posts: 73

Original Poster
Rep: Reputation: Disabled
I dont use a generic Kernel. Can you please tell me what should I include ?
 
Old 05-31-2022, 03:38 AM   #7
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by karthik_holla View Post
I dont use a generic Kernel. Can you please tell me what should I include ?
For testing purposes, does it work with the generic Kernel?
 
Old 05-31-2022, 03:43 AM   #8
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by karthik_holla View Post
I dont use a generic Kernel. Can you please tell me what should I include ?
This could be the root cause of your issues...

Anyway, the huge kernel is supposed to be used only as a "recovery/emergency" solution - I strongly recommend you to use the generic kernel and an initrd.

Please do not tell me that's complicated. It's only a bit more complicated. And, after all, the Ubuntu, openSUSE and Fedora lives well with their initrds since ages - still I do not think they are (in average) smarter than us? or they are?

And please attach the full dmesg and X.org log files if you want meaningful responses.

Last edited by LuckyCyborg; 05-31-2022 at 04:09 AM.
 
1 members found this post helpful.
Old 05-31-2022, 04:32 AM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by LuckyCyborg View Post
And, after all, the Ubuntu, openSUSE and Fedora lives well with their initrds since ages - still I do not think they are (in average) smarter than us? or they are?
Anyone who finds a Linux distributions which is not a Slackware derivative that neither ships with a pre-built initrd nor builds one during the installation process wins a reputation point from me

PS Distributions that do not provide an official installer do not count.

Last edited by Didier Spaier; 05-31-2022 at 04:41 AM.
 
1 members found this post helpful.
Old 05-31-2022, 10:45 AM   #10
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
I'm with OP. I don't like and rarely use initrd on any system where i can avoid it. I'd rather build a custom kernel and forget about it than mess with the added steps and complexity introduced by initrd since I don't use encryption (the main compelling reason for initrd).

So I'd try various means to identify the best kernel module to modprobe maybe starting here

https://www.intel.com/content/www/us...hics-5500.html

Or I would look through /boot/config for framebuffer devices and HD devices entries to see what's available. If they are checked for inclusion as modules just modprobe or insmod. If they are not, rebuild the kernel. Done.

BTW in the meantime one might have luck with X11 if the xorg.conf files demands "VESA" as driver until success with the actual Intel module.
 
1 members found this post helpful.
Old 05-31-2022, 11:14 AM   #11
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by enorbet View Post
I'm with OP. I don't like and rarely use initrd on any system where i can avoid it. I'd rather build a custom kernel and forget about it than mess with the added steps and complexity introduced by initrd since I don't use encryption (the main compelling reason for initrd).
About what "complexity introduced by initrd" you talk, man? There's no such thing - as Slacker you do many much more complex tasks than handling an initrd.

And aren't the Slackers the Bash Masters of Known Universe? What stops you to write a convenient script to automatize the "burden" to handle an initrd?

There's mine:
Code:
#!/bin/sh

KVERSION=`ls /boot/vmlinuz-generic-5.15.* | cut -d- -f3`

BOOTDISK=$(mount | grep 'on / ' | cut -d' ' -f1 | tr -d '[:digit:]')

#
KMODULES="bfq:uas:xhci-pci:ohci-pci:ehci-pci:xhci-hcd:uhci-hcd:ehci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-asus:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:jbd2:mbcache:ext4"

ROOTDEV="UUID=fde92342-b611-41ac-9a42-8bd3b4df7ce0"
ROOTFS="ext4"

SWAPDEV="UUID=89eb4bf5-85c4-4e1d-a297-a3ce0d848e7d"


# Create the base initrd.
mkinitrd -c -k "$KVERSION" -r "$ROOTDEV" -f "$ROOTFS" -m "$KMODULES" -h "$SWAPDEV" -u -M -s /boot/initrd-generic-${KVERSION} -o /boot/initrd-generic-${KVERSION}.gz

# Symlink the final initrd.
(cd /boot; ln -sf initrd-generic-${KVERSION}.img initrd-generic.img)

# Update the kernel and initrd on the EFI boot.
echo "Updating the kernel and initrd on EFI partitition..."

cp -f /boot/vmlinuz-generic-${KVERSION} /boot/efi/EFI/Slackware/vmlinuz-generic
cp -f /boot/initrd-generic-${KVERSION}.img /boot/efi/EFI/Slackware/initrd-generic.img

# Run the LILO.
lilo -P ignore -b ${BOOTDISK}
This script I execute after upgrading a kernel, to update both the BIOS MBR's and UEFI's bootloader files.

So, this is "complexity" ? To put several commands in a script?

Anyway, after updating the kernel, you should update the bootloader(s) somehow, then you should execute something, either a script like this, or lilo or eliloconfig, or God knows what.

IF you bother to thinker a bit, the initrd handling introduces exactly ZERO additional complexity.

PS. This script was made years ago by an Ubuntunian tinkering with Slackware as a novice: me. The titrated Slackers certainly can make much better scripts.

Last edited by LuckyCyborg; 05-31-2022 at 11:41 AM.
 
Old 05-31-2022, 02:23 PM   #12
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by LuckyCyborg View Post
About what "complexity introduced by initrd" you talk, man?
Actually he's right. With initrd you basically boot twice, so double the amount of things that can go wrong. Initrd is great for distributions, but for private users it's not needed, slows down the boot and increase the risk of things going wrong if you have a habit of doing custom Kernel/bootmanager stuff (which is often needed, and part of the game if you like fiddling).

I do like that there is the Kernel Huge in Slackware, it's quite a unique thing actually

But in this case, when something like that is wrong, the first thing to try is the Kernel-generic
 
Old 05-31-2022, 04:12 PM   #13
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Quote:
Originally Posted by LuckyCyborg View Post
About what "complexity introduced by initrd" you talk, man? There's no such thing - as Slacker you do many much more complex tasks than handling an initrd.

And aren't the Slackers the Bash Masters of Known Universe? What stops you to write a convenient script to automatize the "burden" to handle an initrd?

There's mine:
Code:
#!/bin/sh

KVERSION=`ls /boot/vmlinuz-generic-5.15.* | cut -d- -f3`

BOOTDISK=$(mount | grep 'on / ' | cut -d' ' -f1 | tr -d '[:digit:]')

#
KMODULES="bfq:uas:xhci-pci:ohci-pci:ehci-pci:xhci-hcd:uhci-hcd:ehci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-asus:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:jbd2:mbcache:ext4"

ROOTDEV="UUID=fde92342-b611-41ac-9a42-8bd3b4df7ce0"
ROOTFS="ext4"

SWAPDEV="UUID=89eb4bf5-85c4-4e1d-a297-a3ce0d848e7d"


# Create the base initrd.
mkinitrd -c -k "$KVERSION" -r "$ROOTDEV" -f "$ROOTFS" -m "$KMODULES" -h "$SWAPDEV" -u -M -s /boot/initrd-generic-${KVERSION} -o /boot/initrd-generic-${KVERSION}.gz

# Symlink the final initrd.
(cd /boot; ln -sf initrd-generic-${KVERSION}.img initrd-generic.img)

# Update the kernel and initrd on the EFI boot.
echo "Updating the kernel and initrd on EFI partitition..."

cp -f /boot/vmlinuz-generic-${KVERSION} /boot/efi/EFI/Slackware/vmlinuz-generic
cp -f /boot/initrd-generic-${KVERSION}.img /boot/efi/EFI/Slackware/initrd-generic.img

# Run the LILO.
lilo -P ignore -b ${BOOTDISK}
This script I execute after upgrading a kernel, to update both the BIOS MBR's and UEFI's bootloader files.

So, this is "complexity" ? To put several commands in a script?

Anyway, after updating the kernel, you should update the bootloader(s) somehow, then you should execute something, either a script like this, or lilo or eliloconfig, or God knows what.

IF you bother to thinker a bit, the initrd handling introduces exactly ZERO additional complexity.
Since 2 steps (at the least) is more complex than just 1, the difference isn't ZERO. Having to repeat it only adds to it. Your way ids fine for you. Mine works for me and I find it substantially simpler. I avoid automation whenever I can. Step-by-step the end result is simpler, less complex. Small steps, Brother.
 
Old 06-01-2022, 01:17 AM   #14
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 959

Rep: Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648
Quote:
Originally Posted by LuckyCyborg View Post
About what "complexity introduced by initrd" you talk, man? There's no such thing - as Slacker you do many much more complex tasks than handling an initrd.
The complexity comes when you are running your Slackware installations on more than one machine. For me, a custom huge.s kernel is the generic thing that fits on every machine regardless if they have IDE, SATA, SCSI, NVME or some more or less obscure RAID card to boot from. When a kernel upgrade is necessary, I can simply push out a new kernel package to all machines in the network and know that those custom packages doinst.sh have done their jobs with lilo on MBR machines and extlinux on UEFI machines so that the boot will work the next time any machine is rebooted.

I don't se any point in attempting doing the "one size fits all" configuration using a kernel together with an initrd. You would still end up pushing support of a lot of hardware to all machines.

Yes, you could probably make a custom kernel package where a more complex doinst.sh also creates the slimmed initrd, but then you would get installations where it is not so easy to move harddrives between machines.

regards Henrik
 
Old 06-01-2022, 01:52 AM   #15
karthik_holla
Member
 
Registered: Jul 2016
Location: India
Distribution: slackware-15.0
Posts: 73

Original Poster
Rep: Reputation: Disabled
Tried running the generic kernel too but the startx does only give me a blank for the first time.I have to press ctrl+alt+backspace and retype startx again to load the GUI properly.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
(nvidia) First startx = blank screen, second startx = works ?!? BuckRogers01 Linux - Hardware 2 04-07-2006 05:26 PM
WHY should I type startx twice to startx? hiux Debian 6 09-09-2005 09:12 AM
startx doesn't startx for user vdemuth Mandriva 10 11-08-2004 07:41 PM
Bug / Xwindows / startx : xinit works but startx crash www.rzr.free.fr Linux - Software 4 10-17-2004 08:06 AM
startx vs startx -- :2 (font dimension is different!!) moly82 Linux - General 7 09-15-2003 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration