Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: Howto: toshset, bluetooth etc on 8.10 Intrepid Ibex

  1. #1
    Join Date
    Dec 2004
    Location
    Glasgow, Scotland
    Beans
    16

    Howto: toshset, bluetooth etc on 8.10 Intrepid Ibex

    In certain Toshiba laptops the bluetooth will only work using the toshset utitlity. In previous versions of ubuntu, this worked flawlessly. Expect it be be fixed soon in 8.10, but in the mean time it's worth having this here.

    There are 2 issues to solve.
    1) 8.10 kernels are compiled without the toshiba_acpi module, which is required by toshset.
    2) Versions of toshiba_acpi in recent kernels do not work with toshset

    The solution is to patch and compile the toshiba_acpi kernel module and manually install it. This is easier, and should be more compatable, than compiling the whole kernel.

    I am far from an expert, so the steps below could probably be done better - please do add further info.

    Here are the steps I took:

    Install required packages
    Code:
    sudo apt-get install build-essential linux-source libncurses5-dev kernel-package
    Copy and extract the kernel sources to a working directory (check your version number)
    Code:
    cd ~
    mkdir src
    cp /usr/src/linux-source-2.6.27.tar.bz2 src
    cd src
    tar xvjf linux-source-2.6.27.tar.bz2
    Download the patch from here that most closely matches your kernel version. the 2.6.26 patch works on kernel 2.6.27 currently used in ubuntu 8.10.
    Code:
    wget http://memebeam.org/free-software/toshiba_acpi/toshiba_acpi-dev_toshiba_test5-linux_2.6.26.patch
    Apply the patch - the first command checks it will all work. Only continue if it gives no errors.
    Code:
    patch -p0 < toshiba_acpi-dev_toshiba_test5-linux_2.6.26.patch --dry-run
    patch -p0 < toshiba_acpi-dev_toshiba_test5-linux_2.6.26.patch
    Create a makefile:
    Code:
    nano Makefile
    Copy the following contents in, then exit with Ctrl+X, type 'y' to save, and take the default location:
    Code:
    obj-m += toshiba_acpi.o
    
    all:
    	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
    
    clean:
    	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
    Build the kernel module:
    Code:
    make
    There should now be a whole lot of files in that folder. The important one is called toshiba_acpi.ko

    To install the module by hand, you need to copy it to the correct directory and modify one file which tells the kernel what dependencies the module has.
    Code:
    sudo cp toshiba_acpi.ko /lib/modules/`uname -r`/kernel/drivers/acpi/
    cd /lib/modules/`uname -r`
    Using the following command should add the required line to the end of the file, but for some reason even as sudo and having modified file and directory permissions, I got a permission denied error:
    Code:
    echo "/lib/modules/`uname -r`/kernel/drivers/acpi/toshiba_acpi.ko:" >> modules.dep
    It works with nano though:
    Code:
    echo "/lib/modules/`uname -r`/kernel/drivers/acpi/toshiba_acpi.ko:"
    Copy this output, then:
    Code:
    sudo nano modules.dep
    press page-down to end of file, then paste in the copied output. Save and exit (Ctrl-X, 'y', Enter)

    That should be it done. You can then load the module using:
    Code:
    sudo modprobe toshiba_acpi
    Bluetooth can be turned on and off using the commands:
    Code:
    sudo toshset -bluetooth on
    sudo toshset -bluetooth off
    Further info from toshset:
    Code:
    sudo toshset -a
    Done!

    Further info can be found at the following pages:
    Bug reports:
    https://bugs.launchpad.net/ubuntu/+s...et/+bug/179728
    https://bugs.launchpad.net/ubuntu/+s...et/+bug/181374
    https://bugs.launchpad.net/ubuntu/+s...ux/+bug/269831
    Kernel compiling:
    http://www.howtoforge.com/kernel_compilation_ubuntu_p2
    Other:
    http://www.flurble.org/computers/toshset.pl

    As always, I'm a beginner in this game, but if this helps a few others until the official patch is released then it's worth it.

  2. #2
    Join Date
    Nov 2008
    Beans
    12

    Re: Howto: toshset, bluetooth etc on 8.10 Intrepid Ibex

    Thank you so much for this post! This is exactly what I've been looking for. However, when I try to execute the patch (with options --dry-run) I get the following error:

    <computer>:~/src$ patch -p0 < toshiba_acpi-dev_toshiba_test5-linux_2.6.26.patch --dry-run
    can't find file to patch at input line 3
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    --------------------------
    |--- toshiba_acpi.c.orig 2008-08-30 22:12:50.000000000 -0700
    |+++ toshiba_acpi.c 2008-08-31 12:03:07.000000000 -0700
    --------------------------
    File to patch:
    Any idea why this might be happening? I verified that toshiba_acpi.c does exist, it's in /drivers/acpi/toshiba_acpi.c. How do I work through this?

    Thanks!

  3. #3
    Join Date
    Oct 2006
    Beans
    1

    Re: Howto: toshset, bluetooth etc on 8.10 Intrepid Ibex

    WOOOOOW!!!! THX. U are the best!!
    The only thing that needs to add is, before aplying the patch:

    Code:
    cp toshiba_acpi-dev_toshiba_test5-linux_2.6.26.patch linux-source-2.6.27/drivers/acpi
    cd linux-source-2.6.27/drivers/acpi
    U ROCKS!!!

  4. #4
    Join Date
    Nov 2008
    Beans
    12

    Re: Howto: toshset, bluetooth etc on 8.10 Intrepid Ibex

    Thanks rubentm for the added step! That solved the error from my first post.

    adpsimpson: the only part of your steps that confused me was the line "Copy this output, then: sudo nano modules.dep". I thought you were telling me to copy sudo nano modules.dep. A better way to word it would be "copy the above code, then run the following: sudo nano modules.dep".

    Unfortunately for me, it looks like I might be out of luck on a Toshiba Satellite A305. My bios is v 1.50 InsydeH20. Turns out this probably isn't suppoted by toshiba_acpi. From http://memebeam.org/toys/ToshibaAcpiDriver:

    Another important note: This driver does not work on all Toshiba laptops, particularly those models which seem to have a BIOS or other firmware which was not developed by Toshiba itself. New reverse engineering work will have to be done on these machines, or Toshiba will have to disclose the necessary details. (For support of machines with Phoenx BIOS, try the [Omnibook driver].) The error you will see in this case is:

    $ modprobe toshiba_acpi
    FATAL: Error inserting toshiba_acpi
    (.../kernel/drivers/acpi/toshiba_acpi.ko): No such device
    This is the exact error I got. I guess I'll try the Omnibook driver! Thanks for your help.

  5. #5
    Join Date
    Nov 2008
    Beans
    1

    Re: Howto: toshset, bluetooth etc on 8.10 Intrepid Ibex

    Hello,

    thanks for this detailed procedure !
    I've one problem when i execute this command :
    Code:
    sudo modprobe toshiba_acpi
    The result is :
    Code:
    FATAL: Error inserting toshiba_acpi (/lib/modules/2.6.27-9-generic/kernel/drivers/acpi/toshiba_acpi.ko): Unknown symbol in module, or unknown parameter (see dmesg)
    And dmesg :
    Code:
    [ 2334.701916] toshiba_acpi: Unknown parameter `hotkeys_over_acpi'
    Can i've help please ?

  6. #6
    Join Date
    Nov 2007
    Beans
    134
    Distro
    Ubuntu 19.04 Disco Dingo

    Re: Howto: toshset, bluetooth etc on 8.10 Intrepid Ibex

    I get this error also on my Toshiba Tecra A9


    'dmesg | grep toshiba' gives this

    Code:
    [28067.064484] toshiba_acpi: Unknown parameter `hotkeys_over_acpi'
    [28110.661291] toshiba_acpi: Unknown parameter `hotkeys_over_acpi'
    [28138.558902] toshiba_acpi: Unknown parameter `iba_acpi'
    [28169.318486] toshiba_acpi: Unknown parameter `hotkeys_over_acpi'
    Any help would be appreciated

    Paresh
    "How did it get so late so soon"
    To the world you may be one person, but to one person you may be the world.

  7. #7
    Join Date
    Nov 2007
    Beans
    134
    Distro
    Ubuntu 19.04 Disco Dingo

    Re: Howto: toshset, bluetooth etc on 8.10 Intrepid Ibex

    Well, I fixed my error by removing the line

    Code:
    options toshiba_acpi hotkeys_over_acpi=1
    from the 'toshiba_acpi.modprobe' file and it worked for me.

    Not sure what this line does, but bluetooth is now working.

    Only issue now is that I have to do
    Code:
    sudo toshset -bluetooth on
    after each reboot or resume from suspend.
    "How did it get so late so soon"
    To the world you may be one person, but to one person you may be the world.

  8. #8
    Join Date
    Jan 2009
    Beans
    27

    Re: Howto: toshset, bluetooth etc on 8.10 Intrepid Ibex

    Seems to work well enough, including of course the fixes added by rubentm and Paresh.

    Now I'm roughing it out with toshset and xorg.conf trying to get my second monitor working...
    toshset -v -video both
    xorg.conf ...?

    To the intergoogle.

  9. #9
    Join Date
    Feb 2009
    Beans
    34

    Re: Howto: toshset, bluetooth etc on 8.10 Intrepid Ibex

    Hello, i have a problem with the patch:
    Code:
    renato@renato-laptop:~/src/linux-source-2.6.27/drivers/acpi$ patch -p0 < toshiba_acpi-dev_toshiba_test5-linux_2.6.26.patch --dry-run
    patching file toshiba_acpi.c
    Hunk #1 FAILED at 28.
    Hunk #2 FAILED at 55.
    Hunk #3 succeeded at 932 with fuzz 2 (offset 417 lines).
    Hunk #4 succeeded at 1312 with fuzz 2 (offset 554 lines).
    Hunk #5 FAILED at 1321.
    Hunk #6 succeeded at 1345 with fuzz 2 (offset 561 lines).
    3 out of 6 hunks FAILED -- saving rejects to file toshiba_acpi.c.rej
    any ideas as to what may be the problem? I'm running on 8.10 intrepid fresh installed.

  10. #10
    Join Date
    Dec 2008
    Location
    UK
    Beans
    407
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Howto: toshset, bluetooth etc on 8.10 Intrepid Ibex

    I have had exactly the same problem after reinstalling and updating intrepid. It worked OK a week or so ago so I am assuming that a recent update has done something to stop it. I have no idea what though.

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •