Siduction Forum

Siduction Forum => Software - Support => Topic started by: Siduc57 on 2017/04/16, 11:48:41

Title: [Workaround] Unleserliche Kernelmeldungen
Post by: Siduc57 on 2017/04/16, 11:48:41
Hallo!

Ich bin hier völlig neu und das erste Mal überhaupt mit der neuesten Siduction-Version unter XFCE4.12  unterwegs! Installation und alle weitere Konfiguration lief echt gut, habe mich da "sklavisch" an das gute Handbuch gehalten :)
Nun zu meinem Problem:
Anfangs hatte ich einen völlig unleserlichen Bootscreen (verpixelter Matsch), den ich mittles einer Freischaltung der Zeile "GRUB_TERMINAL=console" in /etc/default/grub lesbar machen konnte.
keine Ahnung, ob dies eine gute Idee ist, aber es funktioniert! ;D

Anders sieht es mit den unleserlichen Bootmeldungen aus!? Hier hätte eigentlich "dpkg-reconfigure console-setup" helfen sollen, habe mittlerweile fast alle Einträge (bis auf jene, für die ein Framebuffer erforderlich ist) durchprobiert. An der Unleserlichkeit der Kernelbootmeldungen hat das nichts geändert!?
Eigentlich kein großes Problem, aber damit kann ich bei den gelegentlichen Upgrades auch nicht richtig mitkriegen, was installiert oder runtergeschmissen wird von der Platte.
Hat jemand, vielleicht eine Idee, wie ich die Sache in den Griff bekommen kann??

Vielen Dank!
Title: Re: Unleserliche Kernelmeldungen
Post by: dibl on 2017/04/16, 12:43:13
Code: [Select]
inxi -Fz and post output here, please.
Title: Re: Unleserliche Kernelmeldungen
Post by: Siduc57 on 2017/04/16, 13:06:22
Hallo,


Der gewünschte Output als User (?):


Code: [Select]
System:    Host: tommy-pc Kernel: 4.10.9-towo.1-siduction-amd64 x86_64 (64 bit)
           Desktop: Xfce 4.12.3
           Distro: siduction 17.1.0 Patience - xfce - (201703051904)
Machine:   Device: desktop Mobo: ASUSTeK model: M3N78-VM v: Rev X.0x
           BIOS: American Megatrends v: 0907 date: 01/13/2009
CPU:       Dual core AMD Athlon 5050e (-MCP-) cache: 1024 KB
           clock speeds: max: 2600 MHz 1: 1000 MHz 2: 1000 MHz
Graphics:  Card: NVIDIA GF108 [GeForce GT 430]
           Display Server: X.Org 1.19.3 drivers: nvidia (unloaded: modesetting,fbdev,vesa,nouveau)
           Resolution: 1280x1024@75.02hz
           GLX Renderer: GeForce GT 430/PCIe/SSE2
           GLX Version: 4.5.0 NVIDIA 375.39
Audio:     Card-1 Creative Labs CA0106/CA0111 [SB Live!/Audigy/X-Fi Series]
           driver: snd_ca0106
           Card-2 NVIDIA GF108 High Definition Audio Controller
           driver: snd_hda_intel
           Card-3 NVIDIA MCP72XE/MCP72P/MCP78U/MCP78S High Definition Audio
           driver: snd_hda_intel
           Sound: ALSA v: k4.10.9-towo.1-siduction-amd64
Network:   Card: NVIDIA MCP77 Ethernet driver: forcedeth
           IF: enp0s10 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 500.1GB (2.9% used)
           ID-1: /dev/sda model: WDC_WD5002ABYS size: 500.1GB
Partition: ID-1: / size: 449G used: 5.4G (2%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 9.45GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 35.0C mobo: 29.0C
           Fan Speeds (in rpm): cpu: 1252 psu: 0 sys-1: 0
Info:      Processes: 166 Uptime: 3:42 Memory: 993.0/7989.9MB
           Client: Shell (bash) inxi: 2.3.5
Title: Re: Unleserliche Kernelmeldungen
Post by: devil on 2017/04/16, 14:40:25
Ich hab das mal in eine Codebox getan, ist so besser leserlich. Dazu nimmt man den #-Button im Editor.
Title: Re: Unleserliche Kernelmeldungen
Post by: Siduc57 on 2017/04/16, 14:44:18
Hallo,

vielen Dank, muß ich mich noch ein bissl "einfuchsen" !
Title: Re: Unleserliche Kernelmeldungen
Post by: dibl on 2017/04/16, 15:52:29
Are you booting with "nomodeset" boot option? If not, try it.
Title: Re: Unleserliche Kernelmeldungen
Post by: Siduc57 on 2017/04/16, 16:33:25
Hi,

 I added "nomodeset" by editing the boot options in the bootscreen (e), to no avail.....so far ... no change at all
You are right, no "nomodeset" is found in my boot options !

Thanks for response
Title: Re: Unleserliche Kernelmeldungen
Post by: dibl on 2017/04/16, 17:32:04
You are going to have to learn the video modes supported by your nvidia card, and then set the GRUB_GFXMODE=
 value to an appropriate resolution in /etc/default/grub.  There are several steps -- here (https://wiki.archlinux.org/index.php/GRUB/Tips_and_tricks) is good guidance under the paragraph "Visual Configuration".
Title: Re: Unleserliche Kernelmeldungen
Post by: Siduc57 on 2017/04/16, 18:48:56
Hello,

thanks for this instruction, I'll give it a shot soon....I'll let you know, if it works...

Appreciate your input


Thomas
Title: Re: Unleserliche Kernelmeldungen
Post by: Siduc57 on 2017/04/18, 16:58:33
Hi,

after tinkering with Grub docs at least for the last two days, trying various options in /etc/default/grub I finally ended nowhere...I found out reasenable resolutions of my graphic card (in Grub and elsewhere) and set serveral sets of option...to no avail!
I also reinstalled nvidia-driver and dist-upgraded my installation...again......nothing seemed to help...no visible effects did take place...

That's somewhat strange since I never had an issue like this recently during installation of other distros, try to install antiX now, just to see if the repported problem will resist a solution :)
Some other ideas... ??? ?

Thomas
Title: Re: Unleserliche Kernelmeldungen
Post by: melmarker on 2017/04/18, 18:18:42
/etc/default/grub might be the wrong place for fixes - i would guess that you want to do your changes in /etc/default/grub.d/foo
Title: Re: Unleserliche Kernelmeldungen
Post by: Siduc57 on 2017/04/18, 18:21:27
Hi,


thanks I'll have a look at this......


Thomas
Title: Re: Unleserliche Kernelmeldungen
Post by: melmarker on 2017/04/18, 19:31:22
and that's the possible reason why your settings don't work:

/usr/sbin/grub-mkconfig 157ff
Code: [Select]
if test -f ${sysconfdir}/default/grub ; then
  . ${sysconfdir}/default/grub
fi
for x in ${sysconfdir}/default/grub.d/*.cfg ; do
  if [ -e "${x}" ]; then
    . "${x}"
  fi
done
Title: Re: Unleserliche Kernelmeldungen
Post by: Siduc57 on 2017/04/18, 22:39:15
Hi melmaker,

I am not the world's foremost bash-code reader, so i have to guess what this code snippet might tell me!
First it's tested if etc/default/grub might be the prevalent config;
But finally /etc/default/grub.d/siduction.cfg is taken, right

But changing the according parameters in the later one don't take any effect, too...?!
Hmm, is my understanding of the provided code snippet correct or do I miss something!?
Can you give me a hint what to change.

regards
Thomas 8)
Title: Re: Unleserliche Kernelmeldungen
Post by: melmarker on 2017/04/18, 23:08:37
first it source  /etc/default/grub, the second one source all files  in /etc/default/grub.d in alphabetical order - so if you change something in /default/grub what a second later is overridden by a value from a file in grub.d: the last file/value will win
Title: Re: Unleserliche Kernelmeldungen
Post by: Siduc57 on 2017/04/19, 19:40:19
Hi melmaker,

thanks for explanation and helpful input !!!

 I'll have to look what has to be changed in /etc/default/grub.d/......and other places accordingly



Sincerely

Thomas :)
Title: Re: [erledigt] Unleserliche Kernelmeldungen
Post by: Siduc57 on 2017/04/23, 14:58:35
Hi,


I have fiddled with /etc/default/grub.cfg and /etc/default/grub.d/siduction.cfg to change unreadable kernelmessages to no avail so far.
I tried to change values of both mentioned files

Code: [Select]
GRUB_GFXMODE=
GRUB_GFXPAYLOAD_LINUX=

to the same values. But that didn't improve anything so far...

After doing a parallel installation of Bodhi Linux messages became readable, so my wild guess into the blue:

Siduction config didn't work for me at all!  :(
When installing another distro equipped with another grub.cfg things seemed to start working for me too
Anyway, parallel installation of another distro shouldn't be considered a solution even if it works as advertised!


regards

Thomas
Title: Re: [Workaround] Unleserliche Kernelmeldungen
Post by: T-ampfer on 2017/04/27, 23:07:49
Ich hatte ein ähnliches Problem. Das Display mit einer nativen Auflösung von 1280x800 wurde wohl nicht richtig erkannt.

Ich habe für Grub Meldungen die Auflösung runter geschraubt auf
Code: [Select]
GRUB_GFXMODE=800x600x24

Da mir das aber für die Konsole(Strg+Alt+ Nummer) zu wenig war und es dort auch funktionierte, habe ich ihm noch den Kernelparameter
Code: [Select]
vga=791
mitgegeben. (http://pierre.baudu.in/other/grub.vga.modes.html (http://pierre.baudu.in/other/grub.vga.modes.html))

Vielleicht hilft es dir ja.
Title: Re: [Workaround] Unleserliche Kernelmeldungen
Post by: musca on 2017/04/27, 23:44:32
Hallo T-Ampfer,

der Parameter vga=791 deaktiviert das Kernelbased-Mode-Switching (KMS).
Heutzutage sind alle Grafiktreiber auf KMS angewiesen ... außer VESA, aber den will man auch nicht.

Grüße
musca
Title: Re: [Workaround] Unleserliche Kernelmeldungen
Post by: T-ampfer on 2017/04/28, 09:28:34
Hallo musca,

das kann ich nicht nachvollziehen:
der Parameter vga=791 deaktiviert das Kernelbased-Mode-Switching (KMS).

Ein lsmod mit und ohne dem Kernelparameter vga=791 ergibt als diff:
Code: [Select]
diff m.txt o.txt
38c38
< evdev                  12714  4
---
> evdev                  12714  11
Verwendet wird hier nouveau und KMS ist aktiv.

Auf https://nouveau.freedesktop.org/wiki/KernelModeSetting/ (https://nouveau.freedesktop.org/wiki/KernelModeSetting/) steht auch eindeutig:
Code: [Select]
KMS and nouveaufb are inseparable.
Diesen Satz findet man auch eins zu eins auf so gut wie jeder anderen Webseite die sich mit diesem Thema beschäftigt.

Um KMS abzuschalten benötigt man den Kernelparameter: nomodset
Gefunden unter anderem hier: https://wiki.debian.org/KernelModesetting (https://wiki.debian.org/KernelModesetting)

Der einzigste der bei einem anderen Rechner am Meckern ist, wenn der Kerlnelparameter vga=791 gesetzt ist, ist der nvidia Treiber:
Code: [Select]
cat /var/log/syslog.1 | grep -i nvr

Apr 28 05:51:50 lappi4 kernel: [    8.442347] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  340.102  Mon Jan 16 13:06:29 PST 2017
Apr 28 05:52:18 lappi4 kernel: [   36.819907] NVRM: Your system is not currently configured to drive a VGA console
Apr 28 05:52:18 lappi4 kernel: [   36.819914] NVRM: on the primary VGA device. The NVIDIA Linux graphics driver
Apr 28 05:52:18 lappi4 kernel: [   36.819916] NVRM: requires the use of a text-mode VGA console. Use of other console
Apr 28 05:52:18 lappi4 kernel: [   36.819918] NVRM: drivers including, but not limited to, vesafb, may result in
Apr 28 05:52:18 lappi4 kernel: [   36.819919] NVRM: corruption and stability problems, and is not supported.
Es läuft aber schon seit Jahren ohne Probleme bei vier Rechnern.

Edit:
Syslogausgabe gekürzt weil das selbe 2x drinne stand nur mit anderen Uhrzeiten.
Title: Re: [Workaround] Unleserliche Kernelmeldungen
Post by: musca on 2017/04/29, 13:39:52
Hallo T-Ampfer,

auch wenn man gern komplizierten Dingen auf den Grund geht, macht es Sinn solche Tauch-Übungen nicht gerade im Treibsand jahrzehntelanger Veralterung auszuführen: Schon Dein angeführter Link bezieht sich auf Kernel 2.6.18.

According to the documentation, use of the vga= kernel parameter is deprecated as of GRUB2.

Auch das Arch-Wiki (https://wiki.archlinux.org/index.php/kernel_mode_setting#Installation) warnt beim Thema Kernelbased-Mode-Switching lapidar:
At first, note that for any method you use, you should always disable 
any vga= options in your bootloader as these will conflict with the native resolution enabled by KMS.

Laut Dokumentation des Kernels (https://github.com/torvalds/linux/blob/master/Documentation/admin-guide/kernel-parameters.txt) bezieht sich der Parameter auf die Framebuffer-Console und somit nur auf den kurzen Moment vor der Auswertung der Kernel-Command-Line. Im Wesentlichen zeichnet sich die Doku dadurch aus, dass man dort kaum mehr als eine Zeile zum Thema findet (= keiner benutzt sowas).

Für Anwender des nvidia_drm (ab Version 364.16)mag wiederum dieser Artikel aus dem Arch-Wiki (https://wiki.archlinux.org/index.php/NVIDIA#DRM_kernel_mode_setting) interessant sein., der auch erklärt worüber sich der Nvidia-Treiber da immer beim Booten beschwert. Anscheinend soll das mit "efifb" unter UEFI alles besser werden.


Grüße
musca


Title: Re: [Workaround] Unleserliche Kernelmeldungen
Post by: T-ampfer on 2017/04/30, 09:02:05
Hallo musca,

Hallo T-Ampfer,

auch wenn man gern komplizierten Dingen auf den Grund geht, macht es Sinn solche Tauch-Übungen nicht gerade im Treibsand jahrzehntelanger Veralterung auszuführen: Schon Dein angeführter Link bezieht sich auf Kernel 2.6.18.
Ich mag deinen Stil. Allerdings ist der Parameter auch noch noch auf Kernel.org gelistet
Code: [Select]
Adding the kernel parameter "nomodeset" helps in most casesund ich habe es gerade mit towo's Kernel ausprobiert. Es funktioniert noch immer, wird aber zB. von nouveau "überschrieben".
Die Abhängigkeit habe ich ja oben schon mal beschrieben.

Quote
According to the documentation, use of the vga= kernel parameter is deprecated as of GRUB2.
Es mag für grub2 veraltet sein, es funktioniert aber trotzdem weil der Kernel schließlich nicht grub ist.
Man verwendet dann also nur ein Grub2 feature nicht.

Quote
Auch das Arch-Wiki warnt beim Thema Kernelbased-Mode-Switching lapidar:
At first, note that for any method you use, you should always disable
any vga= options in your bootloader as these will conflict with the native resolution enabled by KMS.

Und nochmal, man deaktiviert KMS nicht indem man den Kernelparameter vga= setzt. Man fuscht KMS nur damit ins Handwerk.
Wenn der nvidia Treiber aktiv ist, ist KMS wohl eh deaktiviert. (Darum habe ich gerade den Beitrag noch mal überarbeitet weil das Beispiel ja nicht wirklich passte.)

Ich persönlich empfinde das Thema nicht als übermäßig schwierig. Mehr Probleme habe ich hier noch im Forum mit quot und code. Aber ich fuchse mich langsam ein.

Quote
Laut Dokumentation des Kernels bezieht sich der Parameter auf die Framebuffer-Console und somit nur auf den kurzen Moment vor der Auswertung der Kernel-Command-Line. Im Wesentlichen zeichnet sich die Doku dadurch aus, dass man dort kaum mehr als eine Zeile zum Thema findet (= keiner benutzt sowas).
Da der Kernel nach Grub(2) startet hat er das Sagen was die Auflösung der Konsole anbelangt. Grub2 selber wird mit
Code: [Select]
GRUB_GFXPAYLOAD_LINUX=keep 
auch nichts anderes machen als dem Kernel die Anweisung zu übergeben und damit KMS ins Handwerk zu fuschen, gerade wenn man nun noch zB.
Code: [Select]
GRUB_GFXMODE=1024x768x32angibt. Welche zB. nicht die native Auflösung ist.

Ob ich nun grub(2) die Auflösung setzen lasse oder konfiguriere es selber, ist im Grunde egal.  KMS wird mit beiden Methoden ins Handwerk gefuscht, aber nicht abgeschaltet!

Grüße
T-ampfer
Title: Re: [Workaround] Unleserliche Kernelmeldungen
Post by: Siduc57 on 2017/04/30, 15:45:39
Hallo,


vielen Dank an musca und T-ampfer für die durchaus erhellende Diskussion meines kleinen Problems!
In meinem Falle hatte ja alles Herumgeschraube mit:
Code: [Select]
dpkg-reconfigure console-setup


und die Veränderung der jeweiligen Werte in /etc/default/grub usw. nichts eingebracht.
Jetzt habe ich allerdings einen "dreckigen" Workaround gefunden der funktioniert.
Erst Xubuntu installiert (testete, ob es vielleicht ein Hardware-Problem o.ä. gab!), dann habe ich nach einem Backup Siduction nochmals auf eine eigenśtändige Partion installiert, ohne Bootloader(!!!)
Jetzt ist die Schrift anstandslos lesbar und ich komme an mein Siduction problemlos ran. Nicht optimal, aber läuft  ;D


PS: Ein Bugreport wollte ich nicht schreiben, da ich ja scheinbar zu einer Minderheit mit diesem Problem gehöre, wenn ich die Zeichen richtig deute 8)


Grüße


und nochmal Dank an alle, die auf das Problem reagiert haben!