SCSI subsystem driver - libdata?

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

RE: SCSI subsystem driver - libdata?

Postby Birdman » Sun Jun 26, 2005 2:47 pm

Another step forward.

I have connected the mouse via USB and can now control the mouse :)

For some reason the scroll wheel will not work now - did under PS2 :(

Let's be positive. I now have a usable system - 2.6 kernel to build off and a mouse that I can control. Any tips on getting the scroll wheel reactivated will be a bonus ;)

Thanks.
Birdman
LXF regular
 
Posts: 145
Joined: Thu May 05, 2005 11:59 am
Location: Wallington, Surrey UK

RE: SCSI subsystem driver - libdata?

Postby nordle » Sun Jun 26, 2005 4:09 pm

:) Excellent news, just got to sort that wheel

I too have a logitech optical wheel mouse (Logitech UltraX variety), but linked in using the ps2 converter and xorg.conf has just:

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/mouse"


Your xorg.conf sais

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/mouse"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection

So the only difference is the Emulate3Buttons, is it worth trying it with PS2 and removing that line?
When you change the xorg.conf, you need to save it and log out of the xserver, ie close KDE/gnome and log back into kde/gnome etc Again, this may be something you were already doing.

A post by someone else with the same errors had this reply, note the "psmouse.proto=imps" that they added to lilo.conf
http://tinyurl.com/dqs5c

Another interesting post seemed to hint that the mouse mat that was used affected it, Im not sure how that explains the working and not working when ps2 or usb but might be worth a punt:
http://www.linuxforums.org/forum/post-239266.html

And another link:
http://kerneltrap.org/node/3637

There seem a lot of posts covering a range of distro's, but unfortunately no specific fix, more trial and error Im afraid.
I think, therefore I compile
User avatar
nordle
LXF regular
 
Posts: 1500
Joined: Fri Apr 08, 2005 9:56 pm

RE: SCSI subsystem driver - libdata?

Postby Birdman » Sun Jun 26, 2005 7:34 pm

Nordle,

>
"psmouse.proto=imps"
>

Cracking advise. It works :)

I am back to PS2 with a wheel that works.

A few rough edges to look at, but I am now on to a winner.

Thanks.
Birdman
LXF regular
 
Posts: 145
Joined: Thu May 05, 2005 11:59 am
Location: Wallington, Surrey UK

RE: SCSI subsystem driver - libdata?

Postby nordle » Sun Jun 26, 2005 9:11 pm

Thats great, got there in the end :)

The other good thing is that this post is already showing up in google, and now with a confirmed solution (for this situation anyway).

Not the greatest introduction to the 2.6 series, but hopefully now you can actually use the benefits, and are able to compile a kernel while wearing a blindfold :wink:
User avatar
nordle
LXF regular
 
Posts: 1500
Joined: Fri Apr 08, 2005 9:56 pm

RE: SCSI subsystem driver - libdata?

Postby jjmac » Mon Jun 27, 2005 12:11 am

It's always good to backup your .config file, especially if your going to do a "make mrproper", which you should do.

And any disk support for the 'root' directory needs to be compiled in rather than as a module, in order for it to be mountable at boot.


Iv'e got the same mouse and processor so some of the below may be usefull.

Code: Select all
---------------------------------------------------------------------------------
XF86Config-4
---------------------------------------------------------------------------------

Section "InputDevice"
  Identifier  "Generic Mouse"
  Driver      "mouse"
# For the PS/2 mouse at least, the option below is needed,
# not so for the "Configured Mouse" above.
  Option      "SendCoreEvents"   "true"
  Option      "CorePointer" 
  Option      "Device"           "/dev/psaux"
# Option      "Protocol"         "PS/2"
# Thur 19/05/2005: Taken from syslog boot detection
# input: ImExPS/2 Logitech Explorer Mouse on isa0060/serio1
# Option      "Protocol"         "ImExPS/2"
# The above didn't work,
  Option      "Protocol"         "ImPS/2"
# This is the standard microsoft compatible serial mouse.
# Option      "Protocol"         "Microsoft"
  Option      "Emulate3Buttons"  "true"
  Option      "ZAxisMapping"     "4 5"
EndSec



---------------------------------------------------------------------------------------------
/usr/src/linux/.cong
---------------------------------------------------------------------------------------------

#
# Input device support
#
CONFIG_INPUT=y

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=800
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=600

#
# Input I/O drivers
#
# CONFIG_GAMEPORT is not set
CONFIG_SOUND_GAMEPORT=y
CONFIG_SERIO=y
CONFIG_SERIO_I8042=y
CONFIG_SERIO_SERPORT=m
CONFIG_SERIO_PARKBD=m

#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y

CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y
CONFIG_MOUSE_SERIAL=y
CONFIG_INPUT_MISC=y
CONFIG_INPUT_PCSPKR=m

#
# Serial drivers
#
CONFIG_SERIAL_8250=m

CONFIG_SERIAL_8250_NR_UARTS=4

#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=m
CONFIG_UNIX98_PTYS=y

CONFIG_PRINTER=m

#
# Processor type and features
#
CONFIG_X86_PC=y
CONFIG_MK8=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_L1_CACHE_SHIFT=6
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_INTEL_USERCOPY=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_HPET_TIMER=y

CONFIG_PREEMPT=y
CONFIG_PREEMPT_BKL=y
CONFIG_X86_UP_APIC=y
CONFIG_X86_UP_IOAPIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_TSC=y
CONFIG_X86_MCE=y
CONFIG_X86_MCE_NONFATAL=m
CONFIG_X86_MSR=m
CONFIG_X86_CPUID=m



On SATA drives, 'gconfig' comes up with the following ...

Support for SATA (deprecated; conflicts with libata SATA driver) BLK_DEV_IDE_SATA

There are two drivers for Serial ATA controllers.

The main driver, "libata", exists inside the SCSI subsystem
and supports most modern SATA controllers.

The IDE driver (which you are currently configuring) supports
a few first-generation SATA controllers.

In order to eliminate conflicts between the two subsystems,
this config option enables the IDE driver's SATA support.
Normally this is disabled, as it is preferred that libata
supports SATA controllers, and this (IDE) driver supports
PATA controllers.

If unsure, say N.


Can't really see any more direct mention on SATA drives in the .config ... guess i'll find that out when i install a drive.


jm
http://counter.li.org
#313537

The FVWM wm -=- www.fvwm.org -=-

Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
jjmac
LXF regular
 
Posts: 1996
Joined: Fri Apr 08, 2005 1:32 am
Location: Sydney, Australia

RE: SCSI subsystem driver - libdata?

Postby Birdman » Mon Jun 27, 2005 11:43 am

jm, thanks for the info. I will be interested to see how you get on with yor SATA drive when the time comes.

The point you raise on the possible conflicts between the two driver methods, I have had kernels running by selecting one only and also by having both selected (as I currently do). Although I now have a functional kernel that will boot from my SATA drive I am none the wiser as to what the critical settings are. I am just pleased to have a working system at the moment so that I can move one to setting up other configurations (my wife wants OO and to be able to print and use her digital camera -- and on, and on :roll: ). I will definitely revisit this though.
Birdman
LXF regular
 
Posts: 145
Joined: Thu May 05, 2005 11:59 am
Location: Wallington, Surrey UK

RE: SCSI subsystem driver - libdata?

Postby jjmac » Tue Jun 28, 2005 9:36 am

>>
I will be interested to see how you get on with yor SATA drive when the time comes.
>>

(grin), so will i, i think, hehe.

The posts caught my eye, as your system seems similar, same mouse etc. I only had to add the ...

Option "SendCoreEvents" "true"

line to X's config to get it to work with the PS/2 adapter, the old X though, v4.0, not X.org.

With the kernel ... i was thinking at the time ... i don't think iv'e seen much mention in "gconfig" concerning SATA disks :roll:. Except for that extraction (hmmm).

If you have a working drive with the 2.6 though, a .config dump would be surly worth a look (hint)(grin). That option of Nordles is a handy inclusion too :)



jm
http://counter.li.org
#313537

The FVWM wm -=- www.fvwm.org -=-

Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
jjmac
LXF regular
 
Posts: 1996
Joined: Fri Apr 08, 2005 1:32 am
Location: Sydney, Australia

RE: SCSI subsystem driver - libdata?

Postby Birdman » Tue Jun 28, 2005 11:28 am

No probs jm - I'll get that sorted tonight. I am using a slightly cut-down version of a .config file that Nordle provided for me. What have I started? I'm sure Nordle won't mind ;)
Birdman
LXF regular
 
Posts: 145
Joined: Thu May 05, 2005 11:59 am
Location: Wallington, Surrey UK

RE: SCSI subsystem driver - libdata?

Postby jjmac » Wed Jun 29, 2005 11:01 pm

>>
cut-down ...
>>

I noticed you mentioned "menuconfig", ... i think ...

You can use a saved config as a base for either "xconfig" or "gconfig" frontends. Ones QT the others GTK based. It may make the various options more accessable.

Doing "make help" provides some good info too :) The 2.6.x is a great kernel really :)


jm
http://counter.li.org
#313537

The FVWM wm -=- www.fvwm.org -=-

Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
jjmac
LXF regular
 
Posts: 1996
Joined: Fri Apr 08, 2005 1:32 am
Location: Sydney, Australia

RE: SCSI subsystem driver - libdata?

Postby jjmac » Thu Jun 30, 2005 4:08 am

Howdy :)


Just saw the .config file, i'll have to look at it a bit closer, as it does have an option (of soughts) for sata ...

CONFIG_SCSI_SATA=y

Plus some others ... i don't think iv'e noticed that before. Unless its' been introduced after 2.6.10 ...

I also noticed ...

# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set

Thats a gem of a facility though, which i use.

It produces a /sys/devices/system/cpu/cpu0/cpufreq/. directory. With the following scaling governors ...

"ondemand powersave userspace performance"

The kernels config process only provides "performance and usespace" as the two possible defaults but that can be changed after boot. It's good, i set it to "ondemand" which drops the cpu freq down to 1Ghz if usage is <= 20%. As soon as usage gets to >= 80% it jumps up to its' high mark 1.8Ghz. At boot both performance and userspace are at their high marks, with userspace allowing the operator to change modes at will.

Less noise, less heat !, less wear and tear. I recommend it a lot :)

#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_DEBUG=y
# CONFIG_CPU_FREQ_PROC_INTF is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_24_API=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_TABLE=y

I suppose sw could be used to do the scale changes but i just run a script as root.

/usr/sbin/setgovernor.sh

#!/bin/sh
#
set -e

echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor


jm
http://counter.li.org
#313537

The FVWM wm -=- www.fvwm.org -=-

Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
jjmac
LXF regular
 
Posts: 1996
Joined: Fri Apr 08, 2005 1:32 am
Location: Sydney, Australia

Previous

Return to Help!

Who is online

Users browsing this forum: No registered users and 0 guests