LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-31-2022, 06:12 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,404

Rep: Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337
Overscanning - Kernel boot oprions?


This is a problem with a Raspberry Pi running slackware64-15.0 (Slarm64). My kernel is overscanning on kernel 6.0.2 after reinstallation. I have updated the OS, but as the kernel overscans before the OS is loaded, I can narrow the issue down to kernel or initrd, and not the OS.

The RazPi boots in a crazy way, and does a lot before loading the kernel. The file /boot/config.txt configures or switches a lot of hardware. With kernel 5.16.7, the Pi overscanned, but these settings in config.txt fixed the overscan issue
Code:
overscan_left=32
overscan_right=32
overscan_top=32
overscan_bottom=32
With kernel 6.0.2, I've tried 0, 32, & 64 in those lines and they haven't improved the overscan by a single pixel. That's a PITA, because all I can do is hit Ctrl_Alt_F2, log in & shut down.

The kernel boot options are
Code:
root=/dev/mmcblk0p2 ro rootwait nofont console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 elevator=noop snd-bcm2835.enable_compat_alsa=0
Anyone got any better alternatives?
 
Old 10-31-2022, 12:07 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,852
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
Have you tried any mode specification boot option? e.g.video=2560x1440-24@60 https://www.kernel.org/doc/Documentation/fb/modedb.txt
 
Old 10-31-2022, 03:34 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,404

Original Poster
Rep: Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337
Quote:
Originally Posted by mrmazda View Post
Have you tried any mode specification boot option? e.g.video=2560x1440-24@60 https://www.kernel.org/doc/Documentation/fb/modedb.txt
Thanks for the reply. I have a HDMI screen, so I tried "video=1860x1000-24@60" and it initially booted showing a smaller screen with edge margins.

But 5-10 seconds in, the video driver loaded, whereupon the overscanning resumed. This is actually very bad news for me, as I feel a kernel bug report coming on, with all the consequent hassle & aggrevation.....

There are (typically) 2 files in the Raspberry Pi where you can put changes to the initial configuration, IIRC
  1. /boot/cmdline.txt which is in effect the boot options passed to every kernel
  2. /boot/config.txt, which is a sort of general hardware setup thing that gets configured before the kernel is loaded.
You'd think I was an expert the way I'm sounding off, but I assure you that's not the case.

Having tried cmdline.txt, I'll definitely try the other (/boot/config.txt) tomorrow, and see what effect it has. I would accept that my tv could be displaying a smaller area, but the fact remains that the 5.16.7 system responded to config.txt settings, whereas the 6.0.2 one does not. I'll update that tomorrow also as 6.0.6 is offered. It's Halloween tonight here - a big Satanic pagan thing that nearly all Christian religions seem to go for, fireworks are continuous, the dog needs tranquilisers. Outside sounds like a war zone and it is not the time to try playing busy on the pc.

Last edited by business_kid; 10-31-2022 at 04:01 PM.
 
Old 10-31-2022, 04:32 PM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,852
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
Quote:
Originally Posted by business_kid View Post
Thanks for the reply. I have a HDMI screen, so I tried "video=1860x1000-24@60" and it initially booted showing a smaller screen with edge margins.
Did you consider the options in that URI that I did not include in my example? Try video=1920x1080-24@60m. The 1.8% margin addition should eliminate the overscan without penalizing quality via a non-native mode. Of course, video= only applies to the vttys.

To handle overscan in Xorg on a PC driving an ordinary HDTV display, I used xrandr:
Code:
xrandr --output HDMI-1 --set underscan on --set "underscan vborder" 20 --set "underscan hborder" 35
in /etc/X11/xinit/xinitrc.d/##-somefile in openSUSE, which on Debian I would have put in /etc/X11/Xsession.d/##-somefile. ## represents any two digit number suitable for having the file read and executed at an appropriate time in the boot sequence. Typically mine are put in the 40-50 range. Experimenting may be required.
 
Old 11-01-2022, 12:47 PM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,404

Original Poster
Rep: Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337
Quote:
Originally Posted by mrmazda
The 1.8% margin addition should eliminate the overscan without penalizing quality via a non-native mode.
The Raspberry Pi lot are funny. It's the other way around. Adding an "Overscan=" setting actually adds underscan.

I tried researching /boot/config.txt options and tried a few. Unfortunately, a number of the less used config.txt options have been dropped, and a few new ones have been added. Additionally, the Pi 4B is regarded as "A more powerful computer" than the Razpi 0-3 which it marginally is. so the config.txt stuff for that id different, & should be separate, but isn't usually. Anyhow I chose my HOSTNAME with it's power in mind. It's called 'SparrowFart."

Here's what I tried to fix my problem:
  • hdmi_safe # Supposed to give overscan of 24 all round with regular hdmi. It had no effect.
  • hdmi_ignore_edid # is supposed to ignore what the monitor is telling you. But in that case, you're supposed to have a better edid in /boot to point the box at, which I didn't. No change anyhow.
  • video=<some size> # I've previously found this setting referenced in config.txt, although I'm not finding it now. It did nothing anyhow.
There's also the question of what the thing does with a non-standard setting. Does it say 'He wants me to display on less of the screen' and trim it's width? Or is it 'Oh, there's fewer dots than I thought' and zoom the picture to fit the known width (which may well be too big)?

Either way, it's my "Just in case" system, and I sorted it. In X, I changed DPI to 1440x1050(?) and I got up a 16:9 mode which was the correct width, and showing the taskbar. I presume the height was good too, as my monitor always centres the picture. I don't need "Just in case" with hdmi.
 
  


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
no /boot/loader and no /boot/kernel/kernel error message on a free bsd install chownuseradd Linux - Newbie 1 02-09-2008 08:05 PM
Overscanning ZeroKun Linux - Software 2 07-21-2006 05:36 PM
/boot/boot/boot/boot/boot/ muddywaters SUSE / openSUSE 1 09-10-2005 06:08 AM
Restarting oprions in SUSE 9.1 anupamsr SUSE / openSUSE 2 10-30-2004 08:49 AM
DUAL BOOT - WIN XP cant be seen/boot on boot - pls help Bluiee Linux - Newbie 1 05-25-2004 05:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:35 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