LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   upgrade slack-current with slackpkg, problem with Xorg (https://www.linuxquestions.org/questions/slackware-14/upgrade-slack-current-with-slackpkg-problem-with-xorg-732575/)

specialized 06-12-2009 05:40 PM

upgrade slack-current with slackpkg, problem with Xorg
 
HI guys!

I recently update my current slack with slackpkg.
obviously with a re-install of the nvidia drivers.
but when i want to reconfigure xorg.conf, xorgconf doesnt exist, only xorgsetup and, by the way, when i use it, freeze my pc.

problems of .conf files? i have the lastest packages

thanx again

mRgOBLIN 06-12-2009 05:54 PM

Make sure you removed the packages that were marked as "removed" in the ChangeLog"

slackpkg clean-system will do this for you but be sure to go through the list and uncheck any of your own custom packages or it will remove those too.
(Wouldn't hurt to re-install the NVidia driver after this)

You might also try "X -configure" (After following the above instructions).

In fact, with the new X I can get away with just having the following in xorg.conf

Code:

Section "Device"
    Identifier    "Card0"
    Driver        "nvidia"
EndSection

So far everything seems to work fine.

specialized 06-12-2009 07:34 PM

Solved, now my keyboard is set bad, without the X running its fine, now hal manage that?
and emerald freezes....why?

thanx a lot

Bruce Hill 06-14-2009 01:19 AM

FontPath changed from X.Org 1.4.2 to X.Org 1.6.1
 
Quote:

Originally Posted by mRgOBLIN (Post 3572223)
You might also try "X -configure" (After following the above instructions).

In fact, with the new X I can get away with just having the following in xorg.conf

Code:

Section "Device"
    Identifier    "Card0"
    Driver        "nvidia"
EndSection

So far everything seems to work fine.

Here's another case where you must use and edit xorg.conf (or some other file I'm not aware of) with the new X.Org 1.6.1 in Slackware64 -current (Thu Jun 11 13:57:36 CDT 2009):

Before upgrading to the latest -current with X.Org 1.6.1, I could start rxvt-unicode with the following options:
Code:

urxvt -geometry 166x52 -fn "8x16bold" -pe tabbed -bg black -fg white
I decided to try what mRgOBLIN posted, changed my xorg.conf to match the above, restarted X and hald, and now it won't launch rxvt-unicode because:
Code:

mingdao@jeremiah:~$ urxvt -geometry 166x52 -fn "8x16bold" -pe tabbed -bg black -fg white &
[1] 29316
mingdao@jeremiah:~$ urxvt: unable to load base fontset, please specify a valid one using -fn, aborting.

Apparently 8x16bold is not in the base fontset with the new X.Org server.

Following both the instructions from both mRgOBLIN and X.Org, I ran "X -configure" and generated a new xorg.conf, and moved it to /etc/X11/xorg.conf and restarted the X server and hald. Still the same result:
Code:

mingdao@jeremiah:~$ urxvt -geometry 166x52 -fn "8x16bold" -pe tabbed -bg black -fg white &
[1] 12071
mingdao@jeremiah:~$ urxvt: unable to load base fontset, please specify a valid one using -fn, aborting.

So, where is the 8x16bold font the previous xorg.conf used, and why is it not now loaded? To find out I first diffed the newly generated file and my old xorg.conf to check the FontPaths:
Code:

mingdao@jeremiah:~$ diff -y /etc/X11/xorg.conf /etc/X11/xorg.conf~
<snip>
Section "Files"                                                Section "Files"
        ModulePath  "/usr/lib64/xorg/modules"                |               
        FontPath    "/usr/share/fonts/TTF"                  | # The location of the RGB database.  Note, this is the name o
        FontPath    "/usr/share/fonts/OTF"                  | # file minus the extension (like ".txt" or ".db").  There is
        FontPath    "/usr/share/fonts/Type1"                | # no need to change the default.                           
        FontPath    "/usr/share/fonts/misc"                  | # Multiple FontPath entries are allowed (which are concatenat
        FontPath    "/usr/share/fonts/75dpi/:unscaled"      | # as well as specifying multiple comma-separated entries in o
                                                              > # command (or a combination of both methods)               
                                                              > #                                                           
                                                              > # If you don't have a floating point coprocessor and emacs, M
                                                              > # programs take long to start up, try moving the Type1 and Sp
                                                              > # to the end of this list (or comment them out).           
                                                              > #                                                           
                                                              > # ModulePath can be used to set a search path for the X serve
                                                              > # The default path is shown here.                           
                                                              > #    ModulePath "/usr/lib/xorg/modules"                     
                                                              >    RgbPath        "/usr/share/X11/rgb"                   
                                                              >    FontPath        "/usr/share/fonts/local/"               
                                                              >    FontPath        "/usr/share/fonts/misc/"               
                                                              >    FontPath        "/usr/share/fonts/OTF/"                 
                                                              >    FontPath        "/usr/share/fonts/TTF/"                 
                                                              >    FontPath        "/usr/share/fonts/Type1/"               
                                                              >    FontPath        "/usr/share/fonts/CID/"                 
                                                              >    FontPath        "/usr/share/fonts/Speedo/"             
                                                              >    FontPath        "/usr/share/fonts/75dpi/:unscaled"     
                                                              >    FontPath        "/usr/share/fonts/100dpi/:unscaled"     
                                                              >    FontPath        "/usr/share/fonts/75dpi/"               
                                                              >    FontPath        "/usr/share/fonts/100dpi/"             
                                                              >    FontPath        "/usr/share/fonts/cyrillic/"           
EndSection                                                      EndSection

Then I searched for the 8x16bold font?
Code:

mingdao@jeremiah:~$ find /usr/ -type f -exec grep -Hin 8x16bold {} \; 2>/dev/null
/usr/share/fonts/cyrillic/fonts.alias:23:8x16bold  -misc-fixed-bold-r-normal--16-160-75-75-c-80-koi8-r
/usr/share/fonts/cyrillic/fonts.alias:44:koi8x16bold  -misc-fixed-bold-r-normal--16-160-75-75-c-80-koi8-r

Since the 8x16bold is in /usr/share/fonts/cyrillic/, and "X -configure" did NOT add that $PATH, it apparently needs to be added to xorg.conf -- or somewhere else. Once I added that FontPath to my new xorg.conf, restarted hald and X, urxvt launched successfully.

So we can add FontPath to the list of reasons you must use an xorg.conf file with X.Org server 1.6.1.

witek 06-14-2009 04:51 PM

Quote:

Originally Posted by specialized (Post 3572215)
I recently update my current slack with slackpkg.

Me too. Using xorg 1.4.2 everything was allright on my intel i810 video card. After upgrade from current xserver 1.6.1 seems to run fine but java applets and flash video are unreadable mess scattered all over my screen.

I thought that re-creation of my xorg.conf would help, but unlike previously, X -configure hangs :(

Bruce Hill 06-14-2009 06:00 PM

Did you backup your old xorg.conf? I keep all my important configurations
in ~/configs for just such cases as this, and for use after a fresh install.
I never format ~/. If you saved the old one, use it instead.

specialized 06-14-2009 06:41 PM

i've fixed every problem, except for the freeze of emerald-theme-manager after the upgrade, as root works fine.....any idea?

mRgOBLIN 06-14-2009 07:18 PM

@ Witek
Let me say this again.

Make sure you removed the packages that were marked as "removed" in the ChangeLog" This is very important.

witek 06-15-2009 03:03 AM

Quote:

Originally Posted by mRgOBLIN (Post 3573839)
Make sure you removed the packages that were marked as "removed" in the ChangeLog" This is very important.

Indeed, initially I did not removed these. Then I read your post and I removed all marked for removal. It did not help.

I have a spare partition with another slackware installation just to test such sensitive issues like mass package update. I usually do 'upgradepkg' but as it takes a lot time, this time I just made 'installpkg'. Maybe this is why xorg not working right but I have a feeling that this is not the case. Is there any difference between 'upgradepkg' and 'installpkg; removepkg' sequence?

I'll try to clean-install from current ISO and let you know.

I guess there is something related to intel card driver as it has been much fuss about intel cards performance with xorg1.6 recently

@Bruce Hill: Yes, I have backup of all important configs, so I can return easily to my previous system, I know I can downgrade back to 1.4.2, but this is not necessary as I said I did it on a test system. I just wanted to indicate that latest xorg is not working right on intel i810.

Bruce Hill 06-15-2009 04:21 PM

Quote:

Originally Posted by witek (Post 3574101)
@Bruce Hill: Yes, I have backup of all important configs, so I can return easily to my previous system, I know I can downgrade back to 1.4.2, but this is not necessary as I said I did it on a test system. I just wanted to indicate that latest xorg is not working right on intel i810.

Did you try the new X.Org 1.6.1 server with your old xorg.conf?

witek 06-16-2009 03:34 AM

Quote:

Originally Posted by Bruce Hill (Post 3575021)
Did you try the new X.Org 1.6.1 server with your old xorg.conf?

Yes, on old xorg.conf XFCE and KDE desktops looked OK untill I ran a website with a java applet. Its content was scattered all over the screen. I tried flash - the same. Then I just ran xterm and got the same.

I tried to generate new xorg.conf but X hanged.

witek 06-16-2009 01:31 PM

I made a clean install using current-ISO on a formated partition, then I generated new xorg.conf and X seemed to run fine untill I started xterm. Here is a screenshot:

http://advamacs.com/i810mess.png

The screenshot, taken by GIMP, is quite different from what was on the screen, however this fact itself indicates that something is wrong here.

willysr 06-16-2009 08:41 PM

i had some problems too, but it's related to NVidia driver which should be recompiled and soon after that, it worked again.

Bruce Hill 06-16-2009 09:49 PM

Quote:

Originally Posted by witek (Post 3576192)
I made a clean install using current-ISO on a formated partition, then I generated new xorg.conf and X seemed to run fine untill I started xterm. Here is a screenshot:

http://advamacs.com/i810mess.png

The screenshot, taken by GIMP, is quite different from what was on the screen, however this fact itself indicates that something is wrong here.

Which font are you using? This is what my konsole looked like when
I first installed Slackware64 and chose different fonts in it.

witek 06-17-2009 02:15 AM

I`m using default fonts, I didn`t change anything.


All times are GMT -5. The time now is 11:37 AM.