My unhappy adventures with Linux installation


Try adding --update option to file /etc/cron.weekly/apt-xapian-index

The original code looks like this:

Code:
...
	if [ -x "$IONICE" ]
	then
		nice -n 19 $IONICE -c 3 $CMD --quiet
	else
		nice -n 19 $CMD --quiet
	fi
...
Updated code looks like this:
Code:
...
	if [ -x "$IONICE" ]
	then
		nice -n 19 $IONICE -c 3 $CMD --update --quiet
	else
		nice -n 19 $CMD --update --quiet
	fi
...
 
Try adding --update option to file /etc/cron.weekly/apt-xapian-index

The original code looks like this:

...
if [ -x "$IONICE" ]
then
nice -n 19 $IONICE -c 3 $CMD --quiet
else
nice -n 19 $CMD --quiet
fi
...
Updated code looks like this:
Code:
...
	if [ -x "$IONICE" ]
	then
		nice -n 19 $IONICE -c 3 $CMD --update --quiet
	else
		nice -n 19 $CMD --update --quiet
	fi
...
It's already like this, but it's too much for my PC anyway
 
In that case, the solution would be to remove it.

You lose some functionality (see here), but you probably don't need it.
Seems not useful for me, I can search packages faster with apt or aptitude... anyway I don't have space issues so I'll keep it just in case, I only disabled the script called by cron.

I wonder how much complicated it's indexing is... if I do an updatedb it takes 5 mins with 5 hard disks for a total 6,5 TB ... while that script slowed down my PC for more than 12 hours (and for at least 3 it was running alone)...
 
In that case, the solution would be to remove it.


You lose some functionality (see here), but you probably don't need it.
Seems not useful for me, I can search packages faster with apt or aptitude... anyway I don't have space issues so I'll keep it just in case, I only disabled the script called by cron.

I wonder how much complicated it's indexing is... if I do an updatedb it takes 5 mins with 5 hard disks for a total 6,5 TB ... while that script slowed down my PC for more than 12 hours (and for at least 3 it was running alone)...
Seems to me have a real bad virus why don't you just get in Google app to fix it

Sent from my LGMS395 using Tapatalk
 
Seems to me have a real bad virus why don't you just get in Google app to fix it
You seems a bit confused to me ;)

My next trial is fix the 640x480 resolution and add the 1280x1024.

I always had a problem with the 640x480 resolution, it stretches over itself showing duplicate images on both sides... the problem is that many games launched with WINE/dosbox starts with that resolution...

Now I took the time to find a solution, and I started this creating the "xorg.conf" file that was missing:

Xorg :1 -configure
cp /root/xorg.conf.new /etc/X11/xorg.conf
Then I started adding to it all the resolutions I need, using "gtf" to generate the needed strings:
Code:
gtf 1280 1024 60

  # 1280x1024 @ 60.00 Hz (GTF) hsync: 63.60 kHz; pclk: 108.88 MHz
  Modeline "1280x1024_60.00"  108.88  1280 1360 1496 1712  1024 1025 1028 1060  -HSync +Vsync
and put them in the xorg.conf file:

Code:
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/X11/misc"
	FontPath     "/usr/share/fonts/X11/cyrillic"
	FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/Type1"
	FontPath     "/usr/share/fonts/X11/100dpi"
	FontPath     "/usr/share/fonts/X11/75dpi"
	FontPath     "built-ins"
EndSection

Section "Module"
	Load  "glx"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
	#HorizSync    31.5-79
	#VertRefresh  50-85
	#UseModes     "Modes0" #monitor0usemodes
        Modeline "1280x1024_60.00"  108.88  1280 1360 1496 1712  1024 1025 1028 1060  -HSync +Vsync
        Modeline "1024x768_60.00"  64.11  1024 1080 1184 1344  768 769 772 795  -HSync +Vsync
        Modeline "800x600_60.00"  38.22  800 832 912 1024  600 601 604 622  -HSync +Vsync
        Modeline "640x480_60.00"  23.86  640 656 720 800  480 481 484 497  -HSync +Vsync
	Option      "PreferredMode" "1280x1024_60.00"
EndSection

Section "Modes"
	Identifier "Modes0"
	#modes0modeline0
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"           	# [<bool>]
        #Option     "HWcursor"           	# [<bool>]
        #Option     "NoAccel"            	# [<bool>]
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "VideoKey"           	# <i>
        #Option     "WrappedFB"          	# [<bool>]
        #Option     "GLXVBlank"          	# [<bool>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "PageFlip"           	# [<bool>]
        #Option     "SwapLimit"          	# <i>
        #Option     "AsyncUTSDFS"        	# [<bool>]
        #Option     "AccelMethod"        	# <str>
	Identifier  "Card0"
	Driver      "nouveau"
	BusID       "PCI:2:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"	
	DefaultDepth 24
	#Option         "metamodes" "1280x1024_60 +0+0" "1024x768_60 +0+0" "800x600_60 +0+0" "640x480_60 +0+0" #METAMODES_0
	Option         "metamodes" "1280x1024_60 +0+0" #METAMODES_0
	Subsection "Display"
		Depth       24
		Modes       "1280x1024_60.00" "1024x768_60.00" "800x600_60.00" "640x480_60.00"
	EndSubsection
	Subsection "Display"
		Depth       16
		Modes       "1280x1024_60.00" "1024x768_60.00" "800x600_60.00" "640x480_60.00"
	EndSubsection
	Subsection "Display"
		Depth       8
		Modes       "1280x1024_60.00" "1024x768_60.00" "800x600_60.00" "640x480_60.00"
	EndSubsection

#	SubSection "Display"
#		Viewport   0 0
#		Depth     24
#	EndSubSection
EndSection

Now, all seems working right, the PC starts by default at 1280x1024, and I finally can use the 640x480 resolution...

BUT, only ONE of the TWO available !! O_O

$ xrandr
Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 4096 x 4096
DVI-I-1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1280x1024_60.00 60.00*+
1024x768 60.00
1024x768_60.00 60.00
800x600 60.32 56.25
800x600_60.00 60.01
848x480 60.00
640x480 59.94
640x480_60.00 60.01
The one that's working is the last one (640x480_60.00 60.01), but all the applications uses the previous by default (640x480 59.94) that STILL has the problem...
How can I remove all those duplicated resolution from xrandr ? ...or better, how can I prevent those to be added in the first place ?
 
Last edited by a moderator:
Try adding this to Monitor section (in xorg.conf):

Option "DefaultModes" "false"
 
Last edited by a moderator:
Try adding this to Monitor section (in xorg.conf):

Option "DefaultModes" "false"
No luck :(

I also tried these, but nothing changed:

Code:
        Option "IgnoreEDID" "true"
        Option       "UseEDID" "false"
        # despite above we get:
        # Using HorizSync/VertRefresh ranges from the EDID
        # (Using EDID frequencies has been enabled on all display devices.)
        Option       "UseEDIDFreqs" "false"
 
I found a workaround to play games, but it's still a pain in the ass:

if I set the display to the working 640x480_60.00 resolution before starting the game, for example "Baldur's Gate" with wine, the resolution will not change and I'm able to play without issues...

the strange thing is that when I exit the game, the resolution changes to the not working 640x480 ...

EDIT:

I made a script to simplify the resolution changes before and after the game:

Code:
#!/bin/bash

# Set the right resolution for the game
xrandr --output DVI-I-1 --mode 640x480_60.00
# Starts Baldur's Gate
./start.sh
# Reset the resolution to the default one
xrandr -s 0
But still I have an issue... maybe related to the desktop environment... when I set the 640x480_60.00 resolution, many fonts becomes HUGE, the bad thing is them remains HUGE even when I return to the 1280x1024 res... and I still don't know how to restore their right size without restart X...
 
Last edited by a moderator:
What about using this in the Monitor section (in xorg.conf):

VertRefresh     60-60.01
Tried, but this prevents me to use that resolution:

Code:
[ 12602.928] (II) NOUVEAU(0): Not using mode "1280x1024_60.00" (hsync out of range)
[ 12602.928] (II) NOUVEAU(0): Not using mode "640x480_60.00" (hsync out of range)
 
I made a script to simplify the resolution changes before and after the game:

#!/bin/bash

# Set the right resolution for the game
xrandr --output DVI-I-1 --mode 640x480_60.00
# Starts Baldur's Gate
./start.sh
# Reset the resolution to the default one
xrandr -s 0
xrandr --dpi 96
Adding the "--dpi 96" option all the fonts behaves correctly at the change of the resolution :)
 
Last edited by a moderator:
Seems to me have a real bad virus why don't you just get in Google app to fix it
You seems a bit confused to me ;)


My next trial is fix the 640x480 resolution and add the 1280x1024.


I always had a problem with the 640x480 resolution, it stretches over itself showing duplicate images on both sides... the problem is that many games launched with WINE/dosbox starts with that resolution...


Now I took the time to find a solution, and I started this creating the "xorg.conf" file that was missing:

Xorg :1 -configure
cp /root/xorg.conf.new /etc/X11/xorg.conf
Then I started adding to it all the resolutions I need, using "gtf" to generate the needed strings:
Code:
gtf 1280 1024 60

  # 1280x1024 @ 60.00 Hz (GTF) hsync: 63.60 kHz; pclk: 108.88 MHz
  Modeline "1280x1024_60.00"  108.88  1280 1360 1496 1712  1024 1025 1028 1060  -HSync +Vsync
and put them in the xorg.conf file:

Code:
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/X11/misc"
	FontPath     "/usr/share/fonts/X11/cyrillic"
	FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/Type1"
	FontPath     "/usr/share/fonts/X11/100dpi"
	FontPath     "/usr/share/fonts/X11/75dpi"
	FontPath     "built-ins"
EndSection

Section "Module"
	Load  "glx"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
	#HorizSync    31.5-79
	#VertRefresh  50-85
	#UseModes     "Modes0" #monitor0usemodes
        Modeline "1280x1024_60.00"  108.88  1280 1360 1496 1712  1024 1025 1028 1060  -HSync +Vsync
        Modeline "1024x768_60.00"  64.11  1024 1080 1184 1344  768 769 772 795  -HSync +Vsync
        Modeline "800x600_60.00"  38.22  800 832 912 1024  600 601 604 622  -HSync +Vsync
        Modeline "640x480_60.00"  23.86  640 656 720 800  480 481 484 497  -HSync +Vsync
	Option      "PreferredMode" "1280x1024_60.00"
EndSection

Section "Modes"
	Identifier "Modes0"
	#modes0modeline0
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"           	# [<bool>]
        #Option     "HWcursor"           	# [<bool>]
        #Option     "NoAccel"            	# [<bool>]
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "VideoKey"           	# <i>
        #Option     "WrappedFB"          	# [<bool>]
        #Option     "GLXVBlank"          	# [<bool>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "PageFlip"           	# [<bool>]
        #Option     "SwapLimit"          	# <i>
        #Option     "AsyncUTSDFS"        	# [<bool>]
        #Option     "AccelMethod"        	# <str>
	Identifier  "Card0"
	Driver      "nouveau"
	BusID       "PCI:2:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"	
	DefaultDepth 24
	#Option         "metamodes" "1280x1024_60 +0+0" "1024x768_60 +0+0" "800x600_60 +0+0" "640x480_60 +0+0" #METAMODES_0
	Option         "metamodes" "1280x1024_60 +0+0" #METAMODES_0
	Subsection "Display"
		Depth       24
		Modes       "1280x1024_60.00" "1024x768_60.00" "800x600_60.00" "640x480_60.00"
	EndSubsection
	Subsection "Display"
		Depth       16
		Modes       "1280x1024_60.00" "1024x768_60.00" "800x600_60.00" "640x480_60.00"
	EndSubsection
	Subsection "Display"
		Depth       8
		Modes       "1280x1024_60.00" "1024x768_60.00" "800x600_60.00" "640x480_60.00"
	EndSubsection

#	SubSection "Display"
#		Viewport   0 0
#		Depth     24
#	EndSubSection
EndSection
Now, all seems working right, the PC starts by default at 1280x1024, and I finally can use the 640x480 resolution...


BUT, only ONE of the TWO available !! O_O

$ xrandr
Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 4096 x 4096
DVI-I-1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1280x1024_60.00 60.00*+
1024x768 60.00
1024x768_60.00 60.00
800x600 60.32 56.25
800x600_60.00 60.01
848x480 60.00
640x480 59.94
640x480_60.00 60.01
The one that's working is the last one (640x480_60.00 60.01), but all the applications uses the previous by default (640x480 59.94) that STILL has the problem...

How can I remove all those duplicated resolution from xrandr ? ...or better, how can I prevent those to be added in the first place ?
Well I think I just got put in my place hehehe


Sent from my LGMS395 using Tapatalk
 
Seems to me have a real bad virus why don't you just get in Google app to fix it
You seems a bit confused to me ;)
Well I think I just got put in my place hehehe


Sent from my LGMS395 using Tapatalk
:D my PC problems are mainly related to the fact that I have a very old machine, so there's a lack of support and I have to find out workarounds for everything... but that's the fun part !! :D
If you look online at eBay or Amazon possibly could find a great deal for a newer model computer or just one that is newer than your most recent one

Sent from my LGMS395 using Tapatalk
 
Seems to me have a real bad virus why don't you just get in Google app to fix it
You seems a bit confused to me ;)
Well I think I just got put in my place hehehe

Sent from my LGMS395 using Tapatalk
:D my PC problems are mainly related to the fact that I have a very old machine, so there's a lack of support and I have to find out workarounds for everything... but that's the fun part !! :D
If you look online at eBay or Amazon possibly could find a great deal for a newer model computer or just one that is newer than your most recent one
Sent from my LGMS395 using Tapatalk
Actually I should have taken a new one in january, but I postponed until now... :D I'm never in a hurry :D
 
Seems to me have a real bad virus why don't you just get in Google app to fix it
You seems a bit confused to me ;)
Well I think I just got put in my place hehehe


Sent from my LGMS395 using Tapatalk
:D my PC problems are mainly related to the fact that I have a very old machine, so there's a lack of support and I have to find out workarounds for everything... but that's the fun part !! :D
If you look online at eBay or Amazon possibly could find a great deal for a newer model computer or just one that is newer than your most recent one

Sent from my LGMS395 using Tapatalk
Actually I should have taken a new one in january, but I postponed until now... :D I'm never in a hurry :D
Too many people are in a hurry these days everyone should just take a breath and slow down so it sounds like you're doing good

Sent from my LGMS395 using Tapatalk
 
Seems to me have a real bad virus why don't you just get in Google app to fix it
You seems a bit confused to me ;)
Well I think I just got put in my place hehehe

Sent from my LGMS395 using Tapatalk
:D my PC problems are mainly related to the fact that I have a very old machine, so there's a lack of support and I have to find out workarounds for everything... but that's the fun part !! :D
If you look online at eBay or Amazon possibly could find a great deal for a newer model computer or just one that is newer than your most recent one
Sent from my LGMS395 using Tapatalk
Actually I should have taken a new one in january, but I postponed until now... :D I'm never in a hurry :D
Too many people are in a hurry these days everyone should just take a breath and slow down so it sounds like you're doing good
Sent from my LGMS395 using Tapatalk
I'm doing very good :D that's just one of the things I should have done months ago :D
 
Damn... at every kernel update the same story... all mine NTFS partitions became unreadable... :(

And I'm still searching what is the cause now...

EDIT:

The only relevant thing could be the linux header... so I'll try to get back the older one

Code:
sudo apt-get install linux-headers-3.16.0-4-common=3.16.7-ckt11-1
 
Last edited by a moderator:
Back
Top