Ask Klaus!
Ask Klaus!
Klaus Knopper is the creator of Knoppix and co-founder of the LinuxTag expo. He currently works as a teacher, programmer, and consultant. If you have a configuration problem, or if you just want to learn more about how Linux works, send your questions to: klaus@linux-magazine.com
Screen Space
Question:
About 24 months ago, I bought a plain, bottom-of-the-range PC with a built-in graphics card. Fedora 5 was out, but I installed Fedora 4 because I had it on hand, and I set up the system for a 19" LCD (1280x1024). Twelve months ago, I gave the 19" LCD to my mother when her 15" CRT died. Then I got a 22" LCD (1680x1050) and, under KDE's Control Center, I picked 1680x1050 in Peripheral | Display. The setting now states (1680x1200), although I am sure I picked 1680x1050.
I was actually quite happy with the situation. The LCD behaved as a viewport of a larger desktop. If I moved the mouse pointer to the bottom of the LCD, the desktop would scroll up to reveal the hidden 150 pixels.
My usual configuration is with the menu at the top (and most apps windows are the same). It is quite natural to work in the top 7/8 of the desktop. The bottom 150 pixels is a handy place to shove a window out of sight. The only problems occurs when a window initializes and its bottom is in the hidden area, or when the application's menu is at the bottom (for example, xpdf) and the mouse inadvertently touches the bottom of the LCD, causing the desktop to scroll up. Otherwise, this configuration is very convenient.
Is this novel configuration caused by a driver problem, or have I blundered onto a feature of X Window that is common knowledge but seldom used?
Recently, I tried Fedora 8. It just automatically recognizes the monitor size. At times I miss the hidden 150-pixel space at the bottom. Is there any way to get it back?
Also, I experience a logout problem with Fedora 8: I've found that, by right-clicking on the desktop background and logging out from that menu, the system doesn't freeze like it does when I am using the menu bar, but then, at shutdown, the system does briefly show a bland login window with a yellow flower in the bottom right hand corner.
Answer:
The "hidden 150 pixels" is indeed caused by a feature of the X server. If the custom scree size is set to 1680x1200, but the "viewable" size is only 1680x1050, xorg will go into scrolling mode just like with the "lower resolution" modes that you can cycle into by hitting Control+Alt+NumericPlus.
Newer setups of xorg have replaced this feature by changing the desktop resolution instead, using the randr server extension. The advantage is that the desktop adjusts its size automatically when changing resolution.
Also, switching between different output devices is easier (e.g., connecting to a projector with a different resolution or scaling the internal display to the external resolution). Xorg will load the randr extension automatically, and then the Modes settings in /etc/X11/xorg.conf seem to get mostly ignored in favor of what the display specifies as its favorite resolution.
You can tell xorg to change its resolution settings on the fly using krandrtray (KDE) or xrandr (works with most desktops and session managers independently of the distribution).
For example:
# xrandr --output LVDS --auto
will try to auto-align the X server's resolution with the monitor or display, whereas:
# xrandr --output LVDS --mode 800x600
or
# xrandr --output LVDS -s 800x600
will set the mode or resolution to the specified 800x600 size, which will also make certain desktops "snap" into a new screen size.
# xrandr --output VGA --auto
should switch on the external VGA port of a notebook and also snap the desktop to the attached monitor's or projector's preferred resolution, in case the external port is not disabled by a hardware feature.
To switch back to the old behavior, (turning randr off in xorg), add the following section to your /etc/X11/xorg.conf file:
Section "ServerFlags" Option "RandR" "false" EndSection
You will have to restart the X server for the change to take effect. Also, check /etc/X11/xorg.conf for modes (fixed resolutions), and check /var/log/Xorg.0.log for anything with RandR or modes that are rejected.
Regarding your second question: It makes a difference whether the logout module of your desktop is called directly as a program, in which case there will be no "frozen" screen, or whether it is called by the session manager, which will attempt to block all interactive elements other than the logout window. This should explain the different is behavior.
The strange login graphics appearing when the system shuts down can either be leftover graphics in the shared memory of the graphics card, or the attempt by the display manager (kdm, gdm, or xdm) to launch a new login window before it realizes a shutdown is in progress.
Big Memory
Question:
I am fairly new to Linux, but now that I am getting familiar with it, I wish I would have switched years ago.
Your Knoppix project is the reason why I switched to Linux; it allowed me to fumble and mess-up as much as I wanted and did not effect my machine in the least bit – thank you! I'm glad I'm not alone in this migration, I read the Ask Klaus column in Linux Magazine, and I can see that other people are wearing the same boots.
Now that I do have a few months of experience under my belt, I attempted to test 128GB of RAM with the memtest utility in the boot menu, and it got stuck. I expected that result because I figure Chris Brady was not thinking of that much memory when he wrote the program. (By the way, I'm not complaining about memtest86 – I love it and use it all the time.)
After failing to run the memtest utility successfully, I attempted to boot Knoppix. The system would not boot either. So, my questions to you are: How can I test more than 64 gigs of memory in a single shot? How can I boot Knoppix on a machine running four Quad-Core AMD processors (that's 16 CPUs total) and more than 64GB of RAM? (I used 128GB.)
Typically, I test DDR2 and FBDIMM with various types of mother boards. For this test, I used a H8QME-2; the link is http://www.supermicro.com/Aplus/motherboard/Opteron8000/MCP55/H8QME-2+.cfm.
If you need more information from me, please ask away; I appreciate your time and am a huge fan!
P.S. If you ever need help testing your software on large amounts of RAM and the newest motherboards, I just might be able to help.
Answer:
I'm afraid I have to tell you that the Linux kernel on Knoppix does not support more than 4GB of RAM because it is compiled in compatibility mode, which allows it to work on every i*86-compatible CPU starting from the oldest i386 to the newest Intel or AMD chips.
To address more than 4GB of physical RAM, you must turn on a special CPU extension called "PAE" when configuring the kernel (see Figure 1). Unfortunately, this extension is incompatible with CPUs that don't support it; with PAE enabled on a non-PAE capable CPU, the system will freeze instantly. Therefore, most distributions choose to install a kernel without PAE by default, whereas you always have the option of installing a PAE-enabled kernel at a later time.
A kernel with PAE enabled – either on a Live or hard disk-based system – will support larger amounts of RAM, although installing a new kernel is somewhat difficult if you have not done it before. You'll need to worry about kernel configuration, installation, and probably also creating an initial ram disk.
Maybe you have to disable the "unsupported" RAM when booting a non-PAE-kernel with the boot option:
linux mem=4000M
(watch out for the capital M) to free up the address space the CPU needs.
I still hope that kernel development will make it possible for future versions to check the PAE extension at boot time, and the kernel can just continue without it if it is not supported. But then, PAE probably changes a lot of machine instructions in the kernel code, and it's just not possible to have the same kernel run with and without PAE.
Stick Script
Question:
In the October 2008 issue of Linux Magazine, you discussed the script needed to put Knoppix 3.5.1 onto a USB stick.
I have a 4GB (3950MB or so) USB stick, and it is not big enough. It bombs out with an error stating not enough space. What size stick is needed to do this? I was under the impression that this type of thing could be done on a 1GB stick.
Answer:
The CD version of Knoppix is about 700MB, whereas the DVD version is more than 4GB. You should well be able to put the CD version on a 1GB stick.
The DVD version requires a stick around 5GB, so the closest common size available is probably an 8GB stick for the DVD version (which I frequently use for testing USB boot compatibility).
Also, if you remaster the compressed files, please make sure the resulting size of a single file after compression does not exceed 4GB, because that is the maximum file size the FAT32 filesystem, (which is usually used for USB sticks) supports.
The same limit applies for a plain iso9660 CD/DVD filesystem; therefore, on the Knoppix DVD, the compressed files are split into two parts to stay below this limit, and they are merged with UnionFS/aufs during boot.
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Fedora KDE Approved as an Official Spin
If you prefer the Plasma desktop environment and the Fedora distribution, you're in luck because there's now an official spin that is listed on the same level as the Fedora Workstation edition.
-
New Steam Client Ups the Ante for Linux
The latest release from Steam has some pretty cool tricks up its sleeve.
-
Gnome OS Transitioning Toward a General-Purpose Distro
If you're looking for the perfectly vanilla take on the Gnome desktop, Gnome OS might be for you.
-
Fedora 41 Released with New Features
If you're a Fedora fan or just looking for a Linux distribution to help you migrate from Windows, Fedora 41 might be just the ticket.
-
AlmaLinux OS Kitten 10 Gives Power Users a Sneak Preview
If you're looking to kick the tires of AlmaLinux's upstream version, the developers have a purrfect solution.
-
Gnome 47.1 Released with a Few Fixes
The latest release of the Gnome desktop is all about fixing a few nagging issues and not about bringing new features into the mix.
-
System76 Unveils an Ampere-Powered Thelio Desktop
If you're looking for a new desktop system for developing autonomous driving and software-defined vehicle solutions. System76 has you covered.
-
VirtualBox 7.1.4 Includes Initial Support for Linux kernel 6.12
The latest version of VirtualBox has arrived and it not only adds initial support for kernel 6.12 but another feature that will make using the virtual machine tool much easier.
-
New Slimbook EVO with Raw AMD Ryzen Power
If you're looking for serious power in a 14" ultrabook that is powered by Linux, Slimbook has just the thing for you.
-
The Gnome Foundation Struggling to Stay Afloat
The foundation behind the Gnome desktop environment is having to go through some serious belt-tightening due to continued financial problems.