Bug 104270

Summary: kmilo shouldn't probe hardware unless necessary
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Ioana Josephine Ciuca <Josephine_k>
Component: KDEAssignee: E-mail List <kde-maintainers>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None CC: f-perret
Version: Beta 1   
Target Milestone: ---   
Hardware: x86   
OS: SUSE Other   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: lshal from Sony Vaio VGN-FS115B

Description Ioana Josephine Ciuca 2005-08-11 20:52:20 UTC
kernel 2.6.13-rc5-git3-3-smp
At every boot, the kernel tries to load sonypi.ko on a system that has nothing
to do with sony nor does it have sony bits or pieces in it:

modprobe FATAL: Error inserting sonypi
(/lib/modules/2.6.13-rc5-git3-3-smp/kernel/drivers/char/sonypi.ko): No such device
Comment 1 Forgotten User ZhJd0F0L3x 2005-08-11 21:13:30 UTC
the problem is most probably the sony vaio kmilo module (KDE control
center=>System=>Sony Vaio Notebook) which tried to access /dev/sonypi which in
turn loads the module.

This should be fixed in kmilo with a configurable "do not load this module"
checkbox (also for the other, sometimes annoying features like Volume display
overlay).

As a workaround you can put the following into /etc/modprobe.conf.local:
# sonypi
install char-major-10-250   /bin/true
Comment 2 Dirk Mueller 2005-08-12 01:32:53 UTC
well, actually the default should be the other way around (not loading it  
unless necessary) but I'm not aware of a method of detecting the hardware  
without root privileges.   
  
e.g. detecting if its a sony vaio works by doing a dmi scan, which requires  
root privileges.   
  
Is there some capability which we can use to detect if its a mobile computer  
at all?  
  
  
hmm, the other solution would be to remove kmilo from kdeutils3 and put it in 
a subpackage, which is only installed on laptop selection. I would actually 
prefer that.  
 
 
Comment 3 Stephan Kulow 2005-08-12 08:27:54 UTC
you don't need a device scan for that. check system.product on 
HAL's /org/freedesktop/Hal/devices/computer should have something like Vaio in 
it (can someone please provide a lshal output?) - all you need for that is 
libhal linkage 
 
Comment 4 Forgotten User ZhJd0F0L3x 2005-08-12 10:05:37 UTC
Created attachment 45876 [details]
lshal from Sony Vaio VGN-FS115B

This is actually a system not supported by sonypi, but this can probably only
be decided by the module itself.
Comment 5 Forgotten User ZhJd0F0L3x 2005-08-12 10:06:39 UTC
and couldn't we provide a checkbox to disable every kmilo module separately? I
find e.g. the volume display most annoying and can only turn it off by disabling
service kmilo.
Comment 6 Dirk Mueller 2005-08-13 13:03:06 UTC
*** Bug 104392 has been marked as a duplicate of this bug. ***
Comment 7 Dirk Mueller 2005-08-13 13:03:33 UTC
kmilo also loads thinkpad module, which is apparently loadable on all 
hardware.  
Comment 8 Dirk Mueller 2005-09-07 13:27:07 UTC
*** Bug 114960 has been marked as a duplicate of this bug. ***
Comment 9 Dirk Mueller 2005-09-13 15:31:38 UTC
we've split kmilo into kdeutils3-laptop, which solves this issue mostly. for 
fixing, uninstall kdeutils3-laptop from your desktop.  
 
real fix requires not installing kdeutils3-laptop on non-laptop machines, this 
is a bit more difficult.  
 
 
Comment 10 Dirk Mueller 2006-02-27 15:33:36 UTC
this depends on patterns being implemented. as I heard, this doesn't happen before 10.2. 
Comment 11 Dirk Mueller 2006-03-01 11:03:38 UTC
Gary, please add this pattern to the SLED laptop pattern. Then reassign back for 10.2 tracking. Thanks. 

Comment 12 Gary Ekker 2006-03-07 21:27:39 UTC
will do, we haven't done anything on the patterns yet. I expect it should be soon.
Comment 13 Gary Ekker 2006-03-24 21:07:22 UTC
This has been added to the laptop pattern for BETA9.
Comment 14 Stephan Kulow 2006-05-09 09:35:03 UTC
I think this is good enough and we should rather concentrate on more important issues