linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Wishlist: Add support for software-rf-switch in Fujitsu-Siemens notebook
       [not found] ` <1317441406.4068.43.camel@deadeye>
@ 2011-10-02 22:12   ` Jonathan Nieder
  2011-10-04  8:25     ` ja
  2011-10-16 20:25     ` Tino Schmidt
  0 siblings, 2 replies; 7+ messages in thread
From: Jonathan Nieder @ 2011-10-02 22:12 UTC (permalink / raw)
  To: Tino Schmidt
  Cc: linux-input, Miloslav Trmac, Ben Hutchings,
	Martin Večeřa, Jonathan Woithe, Éric Piel

Hi,

Tino Schmidt wrote[1]:

> My notebook is an Fujitsu Siemens Amilo A1655G, which has a 
> software-based RF-Switch. My wireless network card ( 
> Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN 
> Controller (rev 02), ID 14e4:4318) would be unusable if there wasn't a 
> project like http://sourceforge.net/projects/fsaa1655g/ which brings 
> support at least for kernel 2.6.26. But there isn't any support beyond 
> kernel 2.6.26.

I notice that the wistron_btns driver has support for some other Amilo
laptops.  The source says:

 /*
  * If your machine is not here (which is currently rather likely), please send
  * a list of buttons and their key codes (reported when loading this module
  * with force=1) and the output of dmidecode to $MODULE_AUTHOR.
  */

Tino (or anyone with this hardware), could you send dmesg output from

	modprobe wistron_btns force=1

and dmidecode (or "grep . /sys/class/dmi/id/*_{vendor,name,version}"
as Ben suggested)?

Thanks,
Jonathan

[1] http://bugs.debian.org/631664

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Wishlist: Add support for software-rf-switch in Fujitsu-Siemens notebook
  2011-10-02 22:12   ` Wishlist: Add support for software-rf-switch in Fujitsu-Siemens notebook Jonathan Nieder
@ 2011-10-04  8:25     ` ja
  2011-10-16 20:25     ` Tino Schmidt
  1 sibling, 0 replies; 7+ messages in thread
From: ja @ 2011-10-04  8:25 UTC (permalink / raw)
  To: Jonathan Nieder
  Cc: Tino Schmidt, linux-input, Miloslav Trmac, Ben Hutchings,
	Jonathan Woithe, Éric Piel

 Hello,

 I never tried integrating the code into any "standard way". I just 
 needed a quick fix and I do not have much experience with Kernel 
 programming.

 I agree that running the code without checking the presence of this HW 
 can have bad side effects (however, I did not experienced any on several 
 different laptops).

 I do not have the hardware easily accessible now to provide requested 
 information. I would really appreciate if anybody could take the code 
 and put it into some standard Kernel module.

 Please note, that it is not possible to switch the wifi on by emulating 
 some software keys. It really needs to write to some HW ports. I 
 obtained these numbers by reverse engineering the original 
 Fujitsu-Siemens Windows driver.

 Cheers,
 Martin

 On Sun, 2 Oct 2011 17:12:54 -0500, Jonathan Nieder wrote:
> Hi,
>
> Tino Schmidt wrote[1]:
>
>> My notebook is an Fujitsu Siemens Amilo A1655G, which has a
>> software-based RF-Switch. My wireless network card (
>> Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN
>> Controller (rev 02), ID 14e4:4318) would be unusable if there wasn't 
>> a
>> project like http://sourceforge.net/projects/fsaa1655g/ which brings
>> support at least for kernel 2.6.26. But there isn't any support 
>> beyond
>> kernel 2.6.26.
>
> I notice that the wistron_btns driver has support for some other 
> Amilo
> laptops.  The source says:
>
>  /*
>   * If your machine is not here (which is currently rather likely),
> please send
>   * a list of buttons and their key codes (reported when loading this 
> module
>   * with force=1) and the output of dmidecode to $MODULE_AUTHOR.
>   */
>
> Tino (or anyone with this hardware), could you send dmesg output from
>
> 	modprobe wistron_btns force=1
>
> and dmidecode (or "grep . /sys/class/dmi/id/*_{vendor,name,version}"
> as Ben suggested)?
>
> Thanks,
> Jonathan
>
> [1] http://bugs.debian.org/631664


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Wishlist: Add support for software-rf-switch in Fujitsu-Siemens notebook
  2011-10-02 22:12   ` Wishlist: Add support for software-rf-switch in Fujitsu-Siemens notebook Jonathan Nieder
  2011-10-04  8:25     ` ja
@ 2011-10-16 20:25     ` Tino Schmidt
  2011-10-17  4:03       ` Ben Hutchings
  1 sibling, 1 reply; 7+ messages in thread
From: Tino Schmidt @ 2011-10-16 20:25 UTC (permalink / raw)
  To: Jonathan Nieder
  Cc: linux-input, Miloslav Trmac, Ben Hutchings,
	Martin Večeřa, Jonathan Woithe, Éric Piel, 631664

Jonathan Nieder wrote:
> Hi,
>
> Tino Schmidt wrote[1]:
>
>    
>> My notebook is an Fujitsu Siemens Amilo A1655G, which has a
>> software-based RF-Switch. My wireless network card (
>> Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN
>> Controller (rev 02), ID 14e4:4318) would be unusable if there wasn't a
>> project like http://sourceforge.net/projects/fsaa1655g/ which brings
>> support at least for kernel 2.6.26. But there isn't any support beyond
>> kernel 2.6.26.
>>      
> I notice that the wistron_btns driver has support for some other Amilo
> laptops.  The source says:
>
>   /*
>    * If your machine is not here (which is currently rather likely), please send
>    * a list of buttons and their key codes (reported when loading this module
>    * with force=1) and the output of dmidecode to $MODULE_AUTHOR.
>    */
>
> Tino (or anyone with this hardware), could you send dmesg output from
>
> 	modprobe wistron_btns force=1
>
> and dmidecode (or "grep . /sys/class/dmi/id/*_{vendor,name,version}"
> as Ben suggested)?
>
> Thanks,
> Jonathan
>
> [1] http://bugs.debian.org/631664
>
>    
Hi,
I'm sorry for the long delay but I can use the laptop only on weekend. 
Here is the output:

# modprobe wistron_btns force=1
FATAL: Error inserting wistron_btns 
(/lib/modules/2.6.26-2-686/kernel/drivers/input/misc/wistron_btns.ko): 
No such device

# dmesg
[  168.628474] wistron_btns: BIOS entry point not found

and
# grep . /sys/class/dmi/id/*_{vendor,name,version}
/sys/class/dmi/id/bios_vendor:FUJITSU SIEMENS
/sys/class/dmi/id/board_vendor:FUJITSU SIEMENS
/sys/class/dmi/id/chassis_vendor:FUJITSU SIEMENS
/sys/class/dmi/id/sys_vendor:FUJITSU SIEMENS
/sys/class/dmi/id/board_name:AMILO A1655
/sys/class/dmi/id/product_name:AMILO A Series
/sys/class/dmi/id/bios_version:1.0C-8044-8A20
/sys/class/dmi/id/board_version:Rev0.4b
/sys/class/dmi/id/chassis_version:N/A
/sys/class/dmi/id/product_version:0100

Thanks,
Tino


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Wishlist: Add support for software-rf-switch in Fujitsu-Siemens notebook
  2011-10-16 20:25     ` Tino Schmidt
@ 2011-10-17  4:03       ` Ben Hutchings
  2011-10-31 17:30         ` Tino Schmidt
  0 siblings, 1 reply; 7+ messages in thread
From: Ben Hutchings @ 2011-10-17  4:03 UTC (permalink / raw)
  To: Tino Schmidt
  Cc: Jonathan Nieder, linux-input, Miloslav Trmac,
	Martin Večeřa, Jonathan Woithe, Éric Piel, 631664


[-- Attachment #1.1: Type: text/plain, Size: 1510 bytes --]

On Sun, 2011-10-16 at 22:25 +0200, Tino Schmidt wrote:
[...]  
> Hi,
> I'm sorry for the long delay but I can use the laptop only on weekend. 
> Here is the output:
> 
> # modprobe wistron_btns force=1
> FATAL: Error inserting wistron_btns 
> (/lib/modules/2.6.26-2-686/kernel/drivers/input/misc/wistron_btns.ko): 
> No such device

It looks like this model is rather different, maybe not a Wistron design
at all.

I would prefer you to test against Linux 3.0, but it appears that the
model detection has not changed since 2.6.26.

> # dmesg
> [  168.628474] wistron_btns: BIOS entry point not found
> 
> and
> # grep . /sys/class/dmi/id/*_{vendor,name,version}
> /sys/class/dmi/id/bios_vendor:FUJITSU SIEMENS
> /sys/class/dmi/id/board_vendor:FUJITSU SIEMENS
> /sys/class/dmi/id/chassis_vendor:FUJITSU SIEMENS
> /sys/class/dmi/id/sys_vendor:FUJITSU SIEMENS
> /sys/class/dmi/id/board_name:AMILO A1655
> /sys/class/dmi/id/product_name:AMILO A Series
> /sys/class/dmi/id/bios_version:1.0C-8044-8A20
> /sys/class/dmi/id/board_version:Rev0.4b
> /sys/class/dmi/id/chassis_version:N/A
> /sys/class/dmi/id/product_version:0100

Please build and test the attached driver (make && insmod
amilo-rfkill.ko).  It provides a standard rfkill device which you can
control with e.g. the 'rfkill' command, and will only bind to specific
models.

If this works, I'll submit the code upstream.

Ben.

-- 
Ben Hutchings
No political challenge can be met by shopping. - George Monbiot


[-- Attachment #1.2: amilo-rfkill.tar.gz --]
[-- Type: application/x-compressed-tar, Size: 1874 bytes --]

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Wishlist: Add support for software-rf-switch in Fujitsu-Siemens notebook
  2011-10-17  4:03       ` Ben Hutchings
@ 2011-10-31 17:30         ` Tino Schmidt
  2011-11-01  4:33           ` Ben Hutchings
  0 siblings, 1 reply; 7+ messages in thread
From: Tino Schmidt @ 2011-10-31 17:30 UTC (permalink / raw)
  To: Ben Hutchings
  Cc: Jonathan Nieder, linux-input, Miloslav Trmac,
	Martin Večeřa, Jonathan Woithe, Éric Piel, 631664


> On Sun, 2011-10-16 at 22:25 +0200, Tino Schmidt wrote:
> [...]
>    
>> Hi,
>> I'm sorry for the long delay but I can use the laptop only on weekend.
>> Here is the output:
>>
>> # modprobe wistron_btns force=1
>> FATAL: Error inserting wistron_btns
>> (/lib/modules/2.6.26-2-686/kernel/drivers/input/misc/wistron_btns.ko):
>> No such device
>>      
> It looks like this model is rather different, maybe not a Wistron design
> at all.
>
> I would prefer you to test against Linux 3.0, but it appears that the
> model detection has not changed since 2.6.26.
>
>    
>> # dmesg
>> [  168.628474] wistron_btns: BIOS entry point not found
>>
>> and
>> # grep . /sys/class/dmi/id/*_{vendor,name,version}
>> /sys/class/dmi/id/bios_vendor:FUJITSU SIEMENS
>> /sys/class/dmi/id/board_vendor:FUJITSU SIEMENS
>> /sys/class/dmi/id/chassis_vendor:FUJITSU SIEMENS
>> /sys/class/dmi/id/sys_vendor:FUJITSU SIEMENS
>> /sys/class/dmi/id/board_name:AMILO A1655
>> /sys/class/dmi/id/product_name:AMILO A Series
>> /sys/class/dmi/id/bios_version:1.0C-8044-8A20
>> /sys/class/dmi/id/board_version:Rev0.4b
>> /sys/class/dmi/id/chassis_version:N/A
>> /sys/class/dmi/id/product_version:0100
>>      
> Please build and test the attached driver (make&&  insmod
> amilo-rfkill.ko).  It provides a standard rfkill device which you can
> control with e.g. the 'rfkill' command, and will only bind to specific
> models.
>
> If this works, I'll submit the code upstream.
>
> Ben.
>
>    
Hi Ben,
Thank you for your code!

Before I built the module (Kernel 2.6.32) I had to insert the include 
line #include <asm/io.h> ( -> inb()-function ?)
With Kernel 2.6.26 I couldn't even built the module.

But loading of the module failed:
# insmod amilo-rfkill.ko
insmod: error inserting 'amilo-rfkill.ko': -1 No such device

In kernel 2.6.32 exists /dev/rfkill but

# rfkill list
0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: yes

# rfkill unblock all

# rfkill list
0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: yes

doesn't work here. Nothing changed.

Thanks,
Tino




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Wishlist: Add support for software-rf-switch in Fujitsu-Siemens notebook
  2011-10-31 17:30         ` Tino Schmidt
@ 2011-11-01  4:33           ` Ben Hutchings
  2011-11-06 21:04             ` Tino Schmidt
  0 siblings, 1 reply; 7+ messages in thread
From: Ben Hutchings @ 2011-11-01  4:33 UTC (permalink / raw)
  To: Tino Schmidt
  Cc: Jonathan Nieder, linux-input, Miloslav Trmac,
	Martin Večeřa, Jonathan Woithe, Éric Piel, 631664

[-- Attachment #1: Type: text/plain, Size: 2865 bytes --]

On Mon, 2011-10-31 at 18:30 +0100, Tino Schmidt wrote:
> > On Sun, 2011-10-16 at 22:25 +0200, Tino Schmidt wrote:
> > [...]
> >    
> >> Hi,
> >> I'm sorry for the long delay but I can use the laptop only on weekend.
> >> Here is the output:
> >>
> >> # modprobe wistron_btns force=1
> >> FATAL: Error inserting wistron_btns
> >> (/lib/modules/2.6.26-2-686/kernel/drivers/input/misc/wistron_btns.ko):
> >> No such device
> >>      
> > It looks like this model is rather different, maybe not a Wistron design
> > at all.
> >
> > I would prefer you to test against Linux 3.0, but it appears that the
> > model detection has not changed since 2.6.26.
> >
> >    
> >> # dmesg
> >> [  168.628474] wistron_btns: BIOS entry point not found
> >>
> >> and
> >> # grep . /sys/class/dmi/id/*_{vendor,name,version}
> >> /sys/class/dmi/id/bios_vendor:FUJITSU SIEMENS
> >> /sys/class/dmi/id/board_vendor:FUJITSU SIEMENS
> >> /sys/class/dmi/id/chassis_vendor:FUJITSU SIEMENS
> >> /sys/class/dmi/id/sys_vendor:FUJITSU SIEMENS
> >> /sys/class/dmi/id/board_name:AMILO A1655
> >> /sys/class/dmi/id/product_name:AMILO A Series
> >> /sys/class/dmi/id/bios_version:1.0C-8044-8A20
> >> /sys/class/dmi/id/board_version:Rev0.4b
> >> /sys/class/dmi/id/chassis_version:N/A
> >> /sys/class/dmi/id/product_version:0100
> >>      
> > Please build and test the attached driver (make&&  insmod
> > amilo-rfkill.ko).  It provides a standard rfkill device which you can
> > control with e.g. the 'rfkill' command, and will only bind to specific
> > models.
> >
> > If this works, I'll submit the code upstream.
> >
> > Ben.
> >
> >    
> Hi Ben,
> Thank you for your code!
> 
> Before I built the module (Kernel 2.6.32) I had to insert the include 
> line #include <asm/io.h> ( -> inb()-function ?)

That should be <linux/io.h>, actually.

> With Kernel 2.6.26 I couldn't even built the module.
> 
> But loading of the module failed:
> # insmod amilo-rfkill.ko
> insmod: error inserting 'amilo-rfkill.ko': -1 No such device

Sorry, I made the driver look for product name "AMILO A1655" but that is
actually the board name.  Could you try changing DMI_PRODUCT_NAME to
DMI_BOARD_NAME?

> In kernel 2.6.32 exists /dev/rfkill but
> 
> # rfkill list
> 0: phy0: Wireless LAN
>     Soft blocked: no
>     Hard blocked: yes
> 
> # rfkill unblock all
> 
> # rfkill list
> 0: phy0: Wireless LAN
>     Soft blocked: no
>     Hard blocked: yes
> 
> doesn't work here. Nothing changed.

This is the rfkill device exposed by the regular wireless driver.  Since
it doesn't know anything about the model-specific blocking behaviour, it
appears to treat it as hard-blocking.  But that shouldn't matter if we
can get this new driver working.

Ben.

-- 
Ben Hutchings
Computers are not intelligent.	They only think they are.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Wishlist: Add support for software-rf-switch in Fujitsu-Siemens notebook
  2011-11-01  4:33           ` Ben Hutchings
@ 2011-11-06 21:04             ` Tino Schmidt
  0 siblings, 0 replies; 7+ messages in thread
From: Tino Schmidt @ 2011-11-06 21:04 UTC (permalink / raw)
  To: Ben Hutchings
  Cc: Jonathan Nieder, linux-input, Miloslav Trmac,
	Martin Večeřa, Jonathan Woithe, Éric Piel, 631664


> On Mon, 2011-10-31 at 18:30 +0100, Tino Schmidt wrote:
>    
>>> On Sun, 2011-10-16 at 22:25 +0200, Tino Schmidt wrote:
>>> [...]
>>>
>>>        
>>>> Hi,
>>>> I'm sorry for the long delay but I can use the laptop only on weekend.
>>>> Here is the output:
>>>>
>>>> # modprobe wistron_btns force=1
>>>> FATAL: Error inserting wistron_btns
>>>> (/lib/modules/2.6.26-2-686/kernel/drivers/input/misc/wistron_btns.ko):
>>>> No such device
>>>>
>>>>          
>>> It looks like this model is rather different, maybe not a Wistron design
>>> at all.
>>>
>>> I would prefer you to test against Linux 3.0, but it appears that the
>>> model detection has not changed since 2.6.26.
>>>
>>>
>>>        
>>>> # dmesg
>>>> [  168.628474] wistron_btns: BIOS entry point not found
>>>>
>>>> and
>>>> # grep . /sys/class/dmi/id/*_{vendor,name,version}
>>>> /sys/class/dmi/id/bios_vendor:FUJITSU SIEMENS
>>>> /sys/class/dmi/id/board_vendor:FUJITSU SIEMENS
>>>> /sys/class/dmi/id/chassis_vendor:FUJITSU SIEMENS
>>>> /sys/class/dmi/id/sys_vendor:FUJITSU SIEMENS
>>>> /sys/class/dmi/id/board_name:AMILO A1655
>>>> /sys/class/dmi/id/product_name:AMILO A Series
>>>> /sys/class/dmi/id/bios_version:1.0C-8044-8A20
>>>> /sys/class/dmi/id/board_version:Rev0.4b
>>>> /sys/class/dmi/id/chassis_version:N/A
>>>> /sys/class/dmi/id/product_version:0100
>>>>
>>>>          
>>> Please build and test the attached driver (make&&   insmod
>>> amilo-rfkill.ko).  It provides a standard rfkill device which you can
>>> control with e.g. the 'rfkill' command, and will only bind to specific
>>> models.
>>>
>>> If this works, I'll submit the code upstream.
>>>
>>> Ben.
>>>
>>>
>>>        
>> Hi Ben,
>> Thank you for your code!
>>
>> Before I built the module (Kernel 2.6.32) I had to insert the include
>> line #include<asm/io.h>  ( ->  inb()-function ?)
>>      
> That should be<linux/io.h>, actually.
>
>    
>> With Kernel 2.6.26 I couldn't even built the module.
>>
>> But loading of the module failed:
>> # insmod amilo-rfkill.ko
>> insmod: error inserting 'amilo-rfkill.ko': -1 No such device
>>      
> Sorry, I made the driver look for product name "AMILO A1655" but that is
> actually the board name.  Could you try changing DMI_PRODUCT_NAME to
> DMI_BOARD_NAME?
>
>    
Yep, that's it. Runs fine!

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-11-06 21:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20110625211738.3615.21718.reportbug@lisa>
     [not found] ` <1317441406.4068.43.camel@deadeye>
2011-10-02 22:12   ` Wishlist: Add support for software-rf-switch in Fujitsu-Siemens notebook Jonathan Nieder
2011-10-04  8:25     ` ja
2011-10-16 20:25     ` Tino Schmidt
2011-10-17  4:03       ` Ben Hutchings
2011-10-31 17:30         ` Tino Schmidt
2011-11-01  4:33           ` Ben Hutchings
2011-11-06 21:04             ` Tino Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).