#!/bin/sh case "${1}" in suspend) #date >> /tmp/pm.log #echo ' suspend' >> /tmp/pm.log /usr/sbin/rfkill block wlan ;; resume) #date >> /tmp/pm.log #echo ' resume' >> /tmp/pm.log /usr/sbin/rfkill unblock wlan ;; hibernate) # nothing ;; thaw) # nothing ;; esac
Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts
Wednesday, July 20, 2011
wireless on suspend/resume
had a problem with some ubuntu upgrades hosing my ath5k wifi after resuming from a sleep. something was messed up with the power getting turned back on, i think, and it seemed to be something that would get fixed and rebroken judging from the dmesg errors and bugposts on kernel.org. downgrading my kernel didn't fix the problem.
fortunately, i found that turning it off and on with rfkill avoided the problems, so i put it into a script to do it automatically.
/etc/pm/sleep.d/50_wireless:
Thursday, July 7, 2011
android sdk, avd, !*&$!$%^
tried to get android emulator working on my admittedly underpowered netbook. it works... sort of. the 3.1 platform was _really_ slow. i tried the snapshot method to make it at least boot faster; no dice. maybe 2.2 would be better, but i think what i'll really try (if i do again) is the android-x86 iso on a flash drive. or just wait -- google and/or intel seems to be coming out with x86 native android later this year.
kindle on linux
followed these instructions to get kindle for pc running on my ubuntu netbook with wine:
sudo add-apt-repository ppa:ubuntu-wine/ppa sudo apt-get update sudo apt-get install wine1.3after installation, just run wine on the installed Kindle.exe in ~/.wine/drive_c/ etc.
Saturday, October 30, 2010
booting from sdhc on acer aspire one
finally got my aa1 to boot with root on the sdhc card. these instructions are really good, and this reference is good, too. (though he is of the opinion that the nand flash write cycle limit is nothing to worry about, and i used to think that, too, but.... i wonder if my swap and ext4 fs had anything to do with the built-in ssd drive crashing so completely and painfully. this time i'll be going ext2 retro, just to be safe.)
had to boot from a usb drive (yeah, ssd is that hosed... can't even spare a few mb for a boot partition. heck, i can't even alter the partition table.) but it seems to be booting. now i wonder if i can hack this case open and put the usb drive in the unused bay...
Friday, February 12, 2010
easy_install uninstall
sometimes easy_install is a bit too easy. here's a great piece of advice.
only tricky bit was that my easy-install.pth was in /usr/local/lib/python2.6/dist-packages/ and i had to use the -mxN options. and, unfortunately, this still leaves all the eggs and crud on the filesystem. this script was helpful for removing stuff in site-packages (/usr/local/lib/python2.6/dist-packages on my ubuntu system), but i still have things in /usr/local/bin...
Thursday, December 18, 2008
ubuntu, sabayon, etc.
i've been thinking about trying ubuntu (or xubuntu) on my next machine. it seems to be the biggest fad to hit linux in a while, and i have to admit that my more geriatric hardware has a hard time keeping up with gentoo updates. and packages like checkinstall give me hope that i will still be able to pick up scruffy-looking hitchhiker software along the way.
the best of both worlds, of course, would be a meta-distro built on top of gentoo. that way i could let somebody else build binaries for most of my packages and still grunge around when i want. i've read a little debate about how this could be accomplished, especially given the exponential combinations of useflag combinations. i lean toward the p2p approach, but i don't see anyone doing it yet. but apparently some people are working on distros based on gentoo, like the stupidly named sabayon project. maybe one of these will eventually be worth the trouble.
Subscribe to:
Posts (Atom)