LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
LinkBack Search this Thread
Old 05-03-2009, 08:05 PM   #1
jc_anthro
LQ Newbie
 
Registered: Mar 2009
Posts: 17

Rep: Reputation: 0
wireless issue easy peasy ubuntu remix


Hi,

I have easy peasy ubuntu remix installed on a eeepc 901. It worked flawlessly out of the box (so much better than the XP it came with) until I tried to turn the wireless off during a plane flight. The wireless light is still on but there is no wireless and no wireless controls will show.

Anyone got a fix? I would prefer to just get the wireless back up first. I could install the eee-control utility, but that would involve having wireless to connect....

Any other options.....

Thanks
 
Old 05-03-2009, 09:53 PM   #2
AsusDave
Member
 
Registered: Jul 2008
Distribution: Debian, Ubuntu 10.04
Posts: 147

Rep: Reputation: 33
You could try this. Here is the script from the eee-config that enables the wifi control in eeeBuntu. I don't know if it will work or not, but it seems like it would be a good starting point.

Code:
#!/bin/sh
#
# Wifi toggle -- EeePC 900A/901/1000/1000H -- Intrepid
# v2.1
# by elmurato
# Based on the script from Merkmal (forum.eeeuser.com)

model=`dmidecode -s system-product-name`
wlan_control=/sys/class/rfkill/rfkill0/state
WLANSTATE=$(cat $wlan_control)

wlan_remember=/etc/acpi/eeepc/wlan
LAST_STATE=$(cat $wlan_remember)

wifi_on_rt2860()
{
  echo 1 > $wlan_control
  modprobe rt2860sta
  echo 1 > $wlan_remember
}

wifi_off_rt2860()
{
  ifconfig ra0 down
  modprobe -r rt2860sta
  sleep 1
  echo 0 > $wlan_control
  echo 0 > $wlan_remember
}

wifi_on_ath()
{
  modprobe -r pciehp
  sleep 1
  modprobe pciehp pciehp_force=1 pciehp_poll_mode=1
  sleep 1
  echo 1 > $wlan_control
  sleep 1 
  modprobe ath5k
  echo 1 > $wlan_remember
}

wifi_off_ath()
{
  ifconfig ath0 down
  sleep 1
  modprobe -r ath5k
  sleep 1    
  echo 0 > $wlan_control
  echo 0 > $wlan_remember
}

toggle(){
  case $WLANSTATE in
      1)
          if [ $model = "900A" ]
          then
                  wifi_off_ath
          else
                  wifi_off_rt2860
          fi
	 dbus-send --system --type=signal /org/eeepc/osd org.eeepc.osd.OSD string:"network-wireless" string:"WLAN <b><span color='red'>disabled</span></b>"
      ;;
      0)
          if [ $model = "900A" ]
          then
                  wifi_on_ath
          else
                  wifi_on_rt2860
          fi
	 dbus-send --system --type=signal /org/eeepc/osd org.eeepc.osd.OSD string:"network-wireless" string:"WLAN <b><span color='SpringGreen4'>enabled</span></b>"
      ;;
  esac
}

restore(){
  if test $LAST_STATE -eq 0
  then
          if [ $model = "900A" ]
          then
                  wifi_off_ath
          else
                  wifi_off_rt2860
          fi
  fi
}

case $1 in
  "toggle")
        toggle
        ;;
  "restore")
        restore
        ;;
  *)
        echo  "eeepc-wifi-toggle: Invalid option - $1"
        ;;
esac
*Disclaimer - Make sure you have a backup of anything important before trying this script.

HTH
Dave
 
Old 05-03-2009, 10:31 PM   #3
jc_anthro
LQ Newbie
 
Registered: Mar 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Great, I'll give it a try.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy PEasy and qemu alaios Ubuntu 4 04-28-2009 01:55 AM
LXer: Easy Peasy V1.1 A Quick First Look LXer Syndicated Linux News 0 04-23-2009 11:30 PM
easy peasy install help needed please social Linux - Laptop and Netbook 1 04-17-2009 01:28 PM
help with easy peasy please social Linux - Software 1 04-16-2009 09:28 PM
LXer: Easy Peasy Linux released for netbooks LXer Syndicated Linux News 0 01-06-2009 03:30 PM


All times are GMT -5. The time now is 08:24 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration