LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slackware 14.1 change screen resolution (https://www.linuxquestions.org/questions/slackware-14/slackware-14-1-change-screen-resolution-4175510105/)

dumdadum 07-04-2014 08:50 AM

slackware 14.1 change screen resolution
 
Hello,

I'm experiencing problems loading to level 4. It seems that 1024x768 is a resolution too high. I want to load to level 4 at a resolution of 800x600. How can I configure slackware to do so? I'm running slackware 14.1 on a pentium 3.

Thanks,
Dumdadum

Didier Spaier 07-04-2014 09:02 AM

Use krandrtray (right click on the screen widget in the tray to pick one of the available resolutions).

You need to have the KDE series of packages installed, but do not need to run KDE. For instance this works here under Fluxbox.

dumdadum 07-04-2014 09:07 AM

Quote:

Originally Posted by Didier Spaier (Post 5198555)
Use krandrtray (right click on the screen widget in the tray to pick one of the available resolutions).

You need to have the KDE series of packages installed, but do not need to run KDE. For instance this works here under Fluxbox.

Hello Mr. Didier,

I cannot run anything in GUI mode for now ( level 4 ). When I run krandrtray in command line it doesnt work, I'm guessing this works in level 4 mode right? I'm wundering if you know how to configure slackware 14.1 to use a 800x600 resolution, to be configured if possible in command line mode, or level 3 mode... I use startx to go to level 4 mode and the screen freezes, I cant do anything in GUI mode cuz it doesnt print correctly on the screen.

Thanks again, (=
Dumdadum

linuxtinker 07-04-2014 09:19 AM

did you try xorgsetup or xorgconfig

dumdadum 07-04-2014 09:25 AM

Quote:

Originally Posted by linuxtinker (Post 5198562)
did you try xorgsetup or xorgconfig

Hello,

I tried xorgsetup, and it allows me to choose the depth, which I selected 8 bit, but it doesnt allow me to choose the screen resolution. The command xorgconfig doesnt work, I think the correct command is xorgsetup...

Any idea on which file I have to edit to say to the X server to select a specific screen resolution? I saw xorg.conf-vesa and theres the refresh rate, but I dont want to play with that cuz I dont want to brake my monitor (= Plus I dont know what is the refresh rate for 800x600 resolution.

Any other ideas?

Thanks,
Dumdadum

linuxtinker 07-04-2014 09:37 AM

Check this thread out:

http://www.linuxquestions.org/questi...13-0-a-832201/

hitest 07-04-2014 09:41 AM

You can also take a look at /etc/lilo.conf and change your framebuffer settings from 1024 to 800x600, that is, comment out 1024 and remove the # in front of 800x600x256. That might help. Sometimes if your framebuffer isn't set-up properly then x windows will have difficulties.

dumdadum 07-04-2014 09:50 AM

Quote:

Originally Posted by hitest (Post 5198581)
You can also take a look at /etc/lilo.conf and change your framebuffer settings from 1024 to 800x600, that is, comment out 1024 and remove the # in front of 800x600x256. That might help. Sometimes if your framebuffer isn't set-up properly then x windows will have difficulties.

Thanks my friend, I'm rebooting as we speak to try it out. I'll keep you posted.

Cheers,
Dumdadum

Nope, that only helped the command line resolution. I tried loading with startx and its still in 1024x768...

Waiting for your reply,
Cheers,
Dumdadum

Didier Spaier 07-04-2014 10:45 AM

Try this as root:
Code:

cd /etc/X11
cp xorg.conf-vesa xorg.conf
sed -i 's/Modes "1024x768"/Modes/g' xorg.conf

then as regular user run xwmconfig and if not already done choose fluxbox as windows manager, then type startx and let us know how that goes.

dumdadum 07-04-2014 10:48 AM

Quote:

Originally Posted by Didier Spaier (Post 5198620)
Try this as root:
Code:

cd /etc/X11
cp xorg.conf-vesa xorg.conf
sed -i 's/Modes "1024x768"/Modes/g' xorg.conf

then as regular user run xmconfig and if not already done choose fluxbox as windows manager, then type startx and let us know how that goes.

Thanks Mr. Didier,

I'll give it a try at home, right now I'm at the office and my shift is over. I'll keep you posted. Thanks again.

Cheers,
Dumdadum

hitest 07-04-2014 10:49 AM

Quote:

Originally Posted by Didier Spaier (Post 5198620)
Try this as root:
Code:

cd /etc/X11
cp xorg.conf-vesa xorg.conf
sed -i 's/Modes "1024x768"/Modes/g' xorg.conf

then as regular user run xmconfig and if not already done choose fluxbox as windows manager, then type startx and let us know how that goes.

A small, friendly edit. That should say xwmconfig.

Didier Spaier 07-04-2014 10:50 AM

Quote:

Originally Posted by hitest (Post 5198623)
A small, friendly edit. That should say xwmconfig.

Thanks Hitest, fixed.

dumdadum 07-06-2014 07:59 PM

Quote:

Originally Posted by Didier Spaier (Post 5198620)
Try this as root:
Code:

cd /etc/X11
cp xorg.conf-vesa xorg.conf
sed -i 's/Modes "1024x768"/Modes/g' xorg.conf

then as regular user run xwmconfig and if not already done choose fluxbox as windows manager, then type startx and let us know how that goes.

Hello Mr. Didier, here is the result. What I did is execute the 3 commands you gave me, executed xwmconfig and selected razor-qt instead of fluxbox and rebooted the system. Here is what I get, it loops, cannot load the login manager, and advises that the boot process is halted and freezed for 5 minutes... here is the printing on the screen, I was able to copy paste it in a text file for you to analyze:

Code:

Loading extension GLX
vesa: Ignoring device with a bound kernel driver
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
        at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional inf$
(EE)
(EE) Server terminated with error (1). Closing log file.
INIT: Id "x1" respawning too fast: disabled for 5 minutes

What is wrong? Why wont it work? Can you give me more help please?

Thanks,
Dumdadum

Didier Spaier 07-07-2014 01:01 AM

First, till we sort out this issue please start your system in runlevel 3 to avoid this:
Code:

INIT: Id "x1" respawning too fast: disabled for 5 minutes
as according to this line from /etc/inittab
Code:

x1:4:respawn:/etc/rc.d/rc.4
this occurs only in runlevel 4.

Now, let's try to understand why the vesa X driver refuses to cooperate.

For that, please provide output of following commands typed as root:
Code:

lsmod
lspci -knn|grep -A2 VGA


dumdadum 07-07-2014 07:55 AM

Quote:

Originally Posted by Didier Spaier (Post 5199783)
First, till we sort out this issue please start your system in runlevel 3 to avoid this:
Code:

INIT: Id "x1" respawning too fast: disabled for 5 minutes
as according to this line from /etc/inittab
Code:

x1:4:respawn:/etc/rc.d/rc.4
this occurs only in runlevel 4.

Now, let's try to understand why the vesa X driver refuses to cooperate.

For that, please provide output of following commands typed as root:
Code:

lsmod
lspci -knn|grep -A2 VGA


Ok Mr. Didier, will do...

I have a little question... cant I edit a file manually, I'm just guessing maybe the xorg.conf or xorg.conf-vesa and configure them to load only "800x600" video modes? I'm asking cuz if there were such a file I have no clue its which one...

I'll try what you said and post output as you requested.

Thanks again,
Dumdadum

Euh, Mr. Didier, when I put myself in level 3 in the inittab and load manually with startx logged in with the root user it load xfce, cuz I just chose xfce with xwmconfig and not fluxbox, the resolution is! in 800x600... thing is that its all blury, the colors dont print well, I cant even see the menu when I click on the application menu button on the bar, I cant see the icons well neither... Can you help with that please?

I'll post the output of the 2 commands you asked me, as soon as I find a free usbkey here at the office.

Thanks again,
Dumdadum

==

Here Mr.Didier is the output of the two files you so kindly requested:

lsmod:
Code:

Module                  Size  Used by
ipv6                  246794  10
lp                      7199  0
ppdev                  4710  0
parport_pc            16728  1
parport                25305  3 lp,ppdev,parport_pc
fuse                  65066  1
rt61pci                19175  0
rt2x00pci              2156  1 rt61pci
rt2x00mmio              2297  1 rt61pci
rt2x00lib              33211  3 rt61pci,rt2x00pci,rt2x00mmio
eeprom_93cx6            1733  1 rt61pci
hid_generic              741  0
usbhid                32543  0
mac80211              373974  2 rt2x00lib,rt2x00pci
cfg80211              321151  2 mac80211,rt2x00lib
rfkill                12610  2 cfg80211
e100                  27844  0
gpio_ich                3581  0
3c59x                  30246  0
mii                    3335  2 e100,3c59x
hid                    70283  2 hid_generic,usbhid
shpchp                22189  0
lpc_ich                11413  0
i2c_dev                4551  0
snd_intel8x0          23649  0
snd_ac97_codec        89231  1 snd_intel8x0
i2c_i801              12393  0
uhci_hcd              19872  0
i2c_core              17388  2 i2c_i801,i2c_dev
intel_agp              8680  1
intel_gtt              10512  1 intel_agp
agpgart                22075  2 intel_agp,intel_gtt
ehci_hcd              34699  0
snd_pcm                62870  2 snd_ac97_codec,snd_intel8x0
snd_page_alloc          6062  2 snd_intel8x0,snd_pcm
snd_timer              14870  1 snd_pcm
psmouse                72582  0
snd                    44159  4 snd_ac97_codec,snd_intel8x0,snd_timer,snd_pcm
microcode              8880  0
soundcore              4318  1 snd
ac97_bus                834  1 snd_ac97_codec
evdev                  7552  0
serio_raw              3545  0
loop                  14786  0

lspci:
Code:

02:00.0 VGA compatible controller [0300]: AMD/ATI [Advanced Micro Devices, Inc.] Rage XL AGP 2X [1002:474d] (rev 27)
        Subsystem: AMD/ATI [Advanced Micro Devices, Inc.] Xpert 98 RXL AGP 2X [1002:0008]
        Kernel modules: atyfb

Here, hope this helps us with my problems...

Thanks,
Dumdadum

Didier Spaier 07-07-2014 09:51 AM

Something seems a little weird: I don't see the module atyfb in the output of lsmod. Anyhow it should be a could one for your card according to "modinfo atyfb".

Maybe you videocard is not fully vesa compliant.

Remove /etc/X11/xorg.conf, do "startx" then look int /var/log/Xorg.0.log which driver is used. If it's not ATI then write an /etc/X11/xorg.conf fiel with just this:
Code:

Section "Device
  Identifier "mycard"
  Driver "ati"
EndSection

Then start X

dumdadum 07-08-2014 08:16 AM

Quote:

Originally Posted by Didier Spaier (Post 5199996)
Something seems a little weird: I don't see the module atyfb in the output of lsmod. Anyhow it should be a could one for your card according to "modinfo atyfb".

Maybe you videocard is not fully vesa compliant.

Remove /etc/X11/xorg.conf, do "startx" then look int /var/log/Xorg.0.log which driver is used. If it's not ATI then write an /etc/X11/xorg.conf fiel with just this:
Code:

Section "Device
  Identifier "mycard"
  Driver "ati"
EndSection

Then start X


Hello Mr. Didier,

Here is the following command I did on the Xorg.0.log file: "cat Xorg.0.log | grep driver". Here is the output of the command:

Code:

[  648.084] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[  648.084]        X.Org XInput driver : 19.1
[  648.195] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
[  648.196] (II) Loading /usr/lib/xorg/modules/drivers/mach64_drv.so
[  648.332] (II) MACH64(0): Not using driver mode "1024x768" (hsync out of range)
[  648.332] (II) MACH64(0): Not using driver mode "1024x768" (hsync out of range)
[  648.332] (II) MACH64(0): Not using driver mode "800x600" (hsync out of range)
[  648.332] (II) MACH64(0): Not using driver mode "1280x1024" (hsync out of range)
[  649.917]        ABI class: X.Org XInput driver, version 19.1
[  649.918] (II) Using input driver 'evdev' for 'Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)'
[  649.921] (II) No input driver specified, ignoring this device.
[  649.923] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[  650.036] (II) Using input driver 'evdev' for 'Speakup'

I think it says ati_drv.so, so that must be the ati driver like you said. Correct? In any case, the Vesa driver loaded xfce with horizontal lines making it impossible to see the screen efficiently, but still I should try the ATI driver if you confirm ati_drv.so is like you said the ATI driver loaded without the xorg.conf file. So to load the ati driver I create a xorg.conf file from the xorg.conf-vesa file and change the Driver section of the Device from vesa to ati correct?

Waiting for your reply,
Dumdadum

Didier Spaier 07-08-2014 11:10 AM

We need to know which driver X eventually used (or tried), so please provide full Xorg.0.log (either inside [code] tags or as an attachment to your next post).

Also, assuming that it is actually MACH 64 (but this has to be confirmed) hsync should be properly set in /etc/X11/xorg.conf, and you could read /usr/doc/xf86-video-mach64-6.9.4/README to know more.

dumdadum 07-09-2014 08:36 AM

1 Attachment(s)
Quote:

Originally Posted by Didier Spaier (Post 5200558)
We need to know which driver X eventually used (or tried), so please provide full Xorg.0.log (either inside [code] tags or as an attachment to your next post).

Also, assuming that it is actually MACH 64 (but this has to be confirmed) hsync should be properly set in /etc/X11/xorg.conf, and you could read /usr/doc/xf86-video-mach64-6.9.4/README to know more.

Here is the full Xorg.0.log file:




Thanks for the help,
Dumdadum

Didier Spaier 07-09-2014 05:39 PM

When I look at your log I see that the X server is crashing. I have no idea why and don't assume it's due to a resolution problem.

Blind guess: you could use e.g. cvt to compute a modeline with the resolution you wish and put that in /etc/X11/xorg.conf. See "man cvt" and "man xorg.conf"

dumdadum 07-10-2014 10:48 AM

Quote:

Originally Posted by Didier Spaier (Post 5201380)
When I look at your log I see that the X server is crashing. I have no idea why and don't assume it's due to a resolution problem.

Blind guess: you could use e.g. cvt to compute a modeline with the resolution you wish and put that in /etc/X11/xorg.conf. See "man cvt" and "man xorg.conf"

cvt? modeline? I dont understand? what is that exactly? if you say you dont know why the X server crashes, is it possible that I need to use huge.s instead of hugesmp.s?

Thanks for more info,
Dumdadum

allend 07-10-2014 12:03 PM

Quote:

[ 166.696] (--) PCI:*(0:2:0:0) 1002:474d:1002:0008 rev 39, Mem @ 0xfd000000/16777216, 0xfeaff000/4096, I/O @ 0x0000d800/256, BIOS @ 0x????????/131072
...
[ 167.009] (==) MACH64(0): Using EXA acceleration architecture
...
[ 167.189] (--) MACH64(0): ATI 3D Rage XL or XC graphics controller detected.
[ 167.189] (--) MACH64(0): Chip type 474D "GM", version 7, foundry TSMC, class 0, revision 0x00.
[
Pentium 3 and ancient graphics card. Seems to be able to be made to work.
http://www.linuxquestions.org/questi...ds-4175486770/

Didier Spaier 07-10-2014 06:00 PM

@dumdadum: If you want I can build a new package for you tomorrow, with the patch mentioned by Allend applied. Just tell if it's for Slackware-14.1 or Slackware64-14.1

dumdadum 07-11-2014 08:13 AM

Quote:

Originally Posted by Didier Spaier (Post 5201960)
@dumdadum: If you want I can build a new package for you tomorrow, with the patch mentioned by Allend applied. Just tell if it's for Slackware-14.1 or Slackware64-14.1

Thanks. I'm using slackware-14.1, not the 64bit one... I appreciate. Itll be a .tgz or .txz package?

Thanks again,
Dumdadum

Didier Spaier 07-11-2014 08:36 AM

Quote:

Originally Posted by dumdadum (Post 5202254)
Thanks. I'm using slackware-14.1, not the 64bit one... I appreciate. Itll be a .tgz or .txz package?

a .tgz probably, but that doesn't matter. I'll give the instructions for download and installation when it'll be ready.

dumdadum 07-11-2014 08:39 AM

Quote:

Originally Posted by Didier Spaier (Post 5202271)
a .tgz probably, but that doesn't matter. I'll give the instructions for download and installation when it'll be ready.

Cool, and thanks again.

Cheers,
Dumdadum

Didier Spaier 07-11-2014 04:53 PM

Do this:
Code:

lftp -c "mirror http://slint.fr/misc/dumdadum"
cd dumdadum
md5sum *md5 # answer should be "OK"
su # to become root (type root's password upon request)
upgradepkg --reinstall *xz

Remove /etc/X11/xorg.conf if you had one.

Then (re) start X.

Good luck.

PS Tell us if that works, I have no way to try it.

dumdadum 07-11-2014 05:24 PM

Quote:

Originally Posted by Didier Spaier (Post 5202508)
Do this:
Code:

lftp -c "mirror http://slint.fr/misc/dumdadum"
cd dumdadum
md5sum *md5 # answer should be "OK"
su # to become root (type root's password upon request)
upgradepkg --reinstall *xz

Remove /etc/X11/xorg.conf if you had one.

Then (re) start X.

Good luck.

PS Tell us if that works, I have no way to try it.

Thanks, I appreciate all the efforts. I'll try it on monday when I go to the office.

Cheers,
Dumdadum

dumdadum 07-14-2014 08:01 AM

Quote:

Originally Posted by Didier Spaier (Post 5202508)
Do this:
Code:

lftp -c "mirror http://slint.fr/misc/dumdadum"
cd dumdadum
md5sum *md5 # answer should be "OK"
su # to become root (type root's password upon request)
upgradepkg --reinstall *xz

Remove /etc/X11/xorg.conf if you had one.

Then (re) start X.

Good luck.

PS Tell us if that works, I have no way to try it.

Well dear Mr. Didier, it works!!! Thanks for the patch. I'm marking this thread as solved. So freaking cool!!! (=

Cheers,
Dumdadum

Didier Spaier 07-14-2014 10:38 AM

Glad it worked. I'll erase the patched package I provided as I don't wan't to keep stuff I will soon hardly remember what it is.

But for future reference for people with the same issue, here is the URL of the patch and in case that disappears here is the patch itself:
Code:

diff --git a/src/atimach64render.c b/src/atimach64render.c
index ffde2cb..8d259fa 100644
--- a/src/atimach64render.c
+++ b/src/atimach64render.c
@@ -339,10 +339,13 @@ Mach64GetOrder(int val, int *shift)
 static Bool
 Mach64CheckTexture(PicturePtr pPict)
 {
-    int w = pPict->pDrawable->width;
-    int h = pPict->pDrawable->height;
+    int h,w;
    int l2w, l2h, level, i;
 
+    if (pPict->pDrawable == NULL)
+            return FALSE;
+    w = pPict->pDrawable->width;
+    h = pPict->pDrawable->height;
    for (i = 0; i < MACH64_NR_TEX_FORMATS; i++) {
        if (Mach64TexFormats[i].pictFormat == pPict->format)
            break;

Instructions for use:
  • unpack this file from a Slackware mirror or installation media: source/x/x11/src/driver/xf86-video-mach64-<version>.tar.xz
  • check that the version of src/atimach64render.c in the unpacked archive be not already patched
  • patch it
  • re-pack the archive
  • run following command: src/x/x11/x11.SlackBuild driver xf86-video-mach64 to rebuild the package
  • upgrade using the new package

dumdadum 07-16-2014 08:10 AM

Quote:

Originally Posted by Didier Spaier (Post 5203697)
Glad it worked. I'll erase the patched package I provided as I don't wan't to keep stuff I will soon hardly remember what it is.

But for future reference for people with the same issue, here is the URL of the patch and in case that disappears here is the patch itself:
Code:

diff --git a/src/atimach64render.c b/src/atimach64render.c
index ffde2cb..8d259fa 100644
--- a/src/atimach64render.c
+++ b/src/atimach64render.c
@@ -339,10 +339,13 @@ Mach64GetOrder(int val, int *shift)
 static Bool
 Mach64CheckTexture(PicturePtr pPict)
 {
-    int w = pPict->pDrawable->width;
-    int h = pPict->pDrawable->height;
+    int h,w;
    int l2w, l2h, level, i;
 
+    if (pPict->pDrawable == NULL)
+            return FALSE;
+    w = pPict->pDrawable->width;
+    h = pPict->pDrawable->height;
    for (i = 0; i < MACH64_NR_TEX_FORMATS; i++) {
        if (Mach64TexFormats[i].pictFormat == pPict->format)
            break;

Instructions for use:
  • unpack this file from a Slackware mirror or installation media: source/x/x11/src/driver/xf86-video-mach64-<version>.tar.xz
  • check that the version of src/atimach64render.c in the unpacked archive be not already patched
  • patch it
  • re-pack the archive
  • run following command: src/x/x11/x11.SlackBuild driver xf86-video-mach64 to rebuild the package
  • upgrade using the new package

Thanks Mr. Didier. As usual, your help is very appreciated.

Cheers, and until next time (=
Dumdadum


All times are GMT -5. The time now is 11:27 PM.