Thursday, May 24, 2007
I have moved!
Well, it's been a long time since I've been over here and I doubt anyone still comes. But I've now moved my attention to a new blog. If you want to follow my ramblings head over to Teknalogee.com
Monday, December 11, 2006
hdaps neverball and smackpad
Before I did my "switch" over to xubuntu I was playing around with my hdaps and getting it to do some pretty crazy stuff. First I will explain the concept of a "smackpad"-- it's a way of using the Hard Drive Active State Protection system to detect a smack on the left of the computer and have it switch to the virtual desktop to the left and then also detect the smack on the right side to swtich to the virtual desktop on the right. This is pretty much useless other to have people say "hey that's cool!"
If you really want someone to say "that's cool" then you should setup the neverball game in conjunction with hdaps. If you just type "modprobe hdaps" then sudo apt-get install neverball (found on the multiverse repository?) then it will automaticly allow you to use your laptop as a controler. This is accomplished by tilting the computer foreward to allow the ball foreward as well as tilting left, right, and back. THis one definately is fun and gets people's attention when they see you tilting your computer all over the place......
If you really want someone to say "that's cool" then you should setup the neverball game in conjunction with hdaps. If you just type "modprobe hdaps" then sudo apt-get install neverball (found on the multiverse repository?) then it will automaticly allow you to use your laptop as a controler. This is accomplished by tilting the computer foreward to allow the ball foreward as well as tilting left, right, and back. THis one definately is fun and gets people's attention when they see you tilting your computer all over the place......
Sunday, December 10, 2006
big changes!
well I've been in love with my laptop and even more in love with ubuntu, but I felt it was time for a change-- so I decided to put xubuntu on my IBM Thinkpad T42, the result is bliss beauty and love. seriously though, I really like it. I decided that I would try out xubuntu for a few reasons namely:
I didnt see a lot of people that have documented using xubuntu as a "cutting edge" operating system-- it was usually used as a way of modernizing some archaic machine
I'm a bit of a minimalist and really love the xfce4 winow manager.
and lastly-- I was bored.
So after the initial install I have to say, I love it! By default it used the ati driver for my Radeon 9600 but interestingly it supported dri and aiglx so that ment I was able to install beryl and have a very nicely integrated "flashy" desktop. I configured the panels, themes, and wallpaper to get a wonderful "cutting edge" look and best of all it's relatively low memory usage. (My 1gb of ram makes this a non-issue) Right now I'm going to work a little bit on the power management and some of the other accessories. Expect more updates! Oh and whoever put the del.icio.us bookmark to this site-- that made my day today and inspired me to continue the blog. Thanks buddy! I'm always ready to help people out and try new ideas etc. so please leave comments with suggestions/questions/comments! Thanks.
I didnt see a lot of people that have documented using xubuntu as a "cutting edge" operating system-- it was usually used as a way of modernizing some archaic machine
I'm a bit of a minimalist and really love the xfce4 winow manager.
and lastly-- I was bored.
So after the initial install I have to say, I love it! By default it used the ati driver for my Radeon 9600 but interestingly it supported dri and aiglx so that ment I was able to install beryl and have a very nicely integrated "flashy" desktop. I configured the panels, themes, and wallpaper to get a wonderful "cutting edge" look and best of all it's relatively low memory usage. (My 1gb of ram makes this a non-issue) Right now I'm going to work a little bit on the power management and some of the other accessories. Expect more updates! Oh and whoever put the del.icio.us bookmark to this site-- that made my day today and inspired me to continue the blog. Thanks buddy! I'm always ready to help people out and try new ideas etc. so please leave comments with suggestions/questions/comments! Thanks.
Tuesday, November 28, 2006
Been a while
Hey I've been busy and haven't devoted much time to tinkering on the laptop in a while. I'm running out of ideas as well. I switched from Wine to Cedega for gaming-- it works great. I also started using gtkpod to sync my ipod with my t42buntu. Well- if you know of any tweaks for speed, performance, battery life or anything please drop a comment with what it is and I'll look into doing a writeup of it on here. Thanks, till next time...
Tuesday, November 21, 2006
Counter-Strike: Source Ubuntu Linux WINE
Sadly I do own counter-strike source.... luckily though I can say I really dont play all that much. Tonight I decided to try and install Source on the T42, just to prove to everyone that you can game on linux and linux is the best. Well yeah and I need to pwn some Newbz! I'm writing this right now as Steam is downloading my source files... wait yea I said that, Steam is running in linux and downloading the files as we speak! So here's how I got that far, after the trial and error:
1. Download WINE
2. Run WINE setup--
3. Download Tahoma font and put it in your wine fonts folder:
4. Download Steam the go to the directory and install it
(Note I just took a break to test out my CSS on Linux, and after a few trial and errors i figured it out and got onto a server and played it! So, IT WORKS!) 5.During the steam install just use all the same options/answers you would use in a windows environment-- at some point it will prompt you that it needs to install a Mozilla Gecko plugin? just say yes and it will do it's own thing.
6. When the installer finishes open up a terminal and do the following to launch steam:
This will launch steam while hiding any outputs from wine, thus running your game faster.
7. When steam launched I couldnt type my name in the login/password boxes without first right clicking in the login field then left clicking. After this I could login as normal.
8. Now that you're ready to launch your game you will want to make sure that all other windows besides the steam "My Games" window are minimized or closed.
9. Double click "Counter Strike Source" and as soon as it says "preparing" click the x button on the steam window with "My Games List" or it will interfere with the game.
10. The game should be running fairly close to normal now, you ay be warned that you're video is wierd and that it's using software mode, but even on my 1.7 Ghz 512mb ram 64mb Radeon 9600 the game was more than playable.
I hope that this was helpful to some. Remember I am really doing this as a proof of concept so hopefully more people will migrate from Windows over to Ubuntu. If you have any questions feel free to comment or email me. Thanks I'm off to go play!
1. Download WINE
sudo apt-get install wine
2. Run WINE setup--
wine setup
3. Download Tahoma font and put it in your wine fonts folder:
cp Tahoma.ttf /home/USERNAME/.wine/drive_c/windows/fonts
4. Download Steam the go to the directory and install it
wine SteamInstaller.exe
(Note I just took a break to test out my CSS on Linux, and after a few trial and errors i figured it out and got onto a server and played it! So, IT WORKS!) 5.During the steam install just use all the same options/answers you would use in a windows environment-- at some point it will prompt you that it needs to install a Mozilla Gecko plugin? just say yes and it will do it's own thing.
6. When the installer finishes open up a terminal and do the following to launch steam:
cd /home/USER/.wine/drive_c/Program Files/Steam
WINEDEBUG="fixme-all" wine steam.exe
This will launch steam while hiding any outputs from wine, thus running your game faster.
7. When steam launched I couldnt type my name in the login/password boxes without first right clicking in the login field then left clicking. After this I could login as normal.
8. Now that you're ready to launch your game you will want to make sure that all other windows besides the steam "My Games" window are minimized or closed.
9. Double click "Counter Strike Source" and as soon as it says "preparing" click the x button on the steam window with "My Games List" or it will interfere with the game.
10. The game should be running fairly close to normal now, you ay be warned that you're video is wierd and that it's using software mode, but even on my 1.7 Ghz 512mb ram 64mb Radeon 9600 the game was more than playable.
I hope that this was helpful to some. Remember I am really doing this as a proof of concept so hopefully more people will migrate from Windows over to Ubuntu. If you have any questions feel free to comment or email me. Thanks I'm off to go play!
PCMCIA TV-Tuner
Just a quick little update-- my father has a pcmcia tv tuner based on the saa7134 chipset that he doesn't use so I took it and decided "I'm gonna make this work with ubuntu!" Basically what needed to be done was as follows: (this is after all the trial and error of course)
1. Place the pcmcia card in the slot with the cable plugged in
2. Make sure that if the modules are loaded you unload them by typing each line into terminal and hitting enter after each:
3. Load the modules with correct parameters:
4. download tvtime to watch the t.v.
5. Now, you could run this as it stands but you will likely find that the audio does not work to fix that you must make a launcher that will point tvtime and your card to use the correct sound. to do that do as follows:
5(a) Make create launcher file:
sh launcher.sh
If you have any questions or need help just comment or email-- aesnyder@gmail.com
I am lucky enough to have a second T42 which I will be setting up as a "MythTV" using this card so check back here sometime and check out the post pertaining to that!
1. Place the pcmcia card in the slot with the cable plugged in
2. Make sure that if the modules are loaded you unload them by typing each line into terminal and hitting enter after each:
sudo rmmod saa7134_alsa
sudo rmmod saa7134
3. Load the modules with correct parameters:
sudo modprobe saa7134
sudo modprobe saa7134_alsa
4. download tvtime to watch the t.v.
sudo apt-get install tvtime
5. Now, you could run this as it stands but you will likely find that the audio does not work to fix that you must make a launcher that will point tvtime and your card to use the correct sound. to do that do as follows:
5(a) Make create launcher file:
gedit launcher.sh5(b) Paste the following inside, save, then exit:
#!/bin/shto play tv you can just type:
sox -c 2 -s -w -r 32000 -t ossdsp /dev/dsp1 -t ossdsp -w -r 32000 /dev/dsp />tvtime --mixer=/dev/mixer:pcm
wait tvtime
t=`pidof sox`;
kill $t;
amixer -c 0 sset PCM 80%,80% unmute
sh launcher.sh
If you have any questions or need help just comment or email-- aesnyder@gmail.com
I am lucky enough to have a second T42 which I will be setting up as a "MythTV" using this card so check back here sometime and check out the post pertaining to that!
Tap your laptop to execute commands and more...
Knock-based commands for your Linux laptop
You probably know that the T42 comes with active protection for the hard drive. Well using that technology it's possible to simply "tap" your computer and have it respond accordingly. Example, tap your laptop and have the track change or double tap somewhere to lock the screen. I havent tried setting up all of this but when I do I'll post-- dont worry!
For the first time, you can hit your computer and get a meaningful response! Using Linux® and the Hard Drive Active Protection System (HDAPS) kernel drivers, you can access the embedded accelerometers on Lenovo (formerly IBM®) ThinkPads, then process the accelerometer data to read specific sequences of "knocking" events -- literally rapping on the laptop case with your knuckles -- and run commands based on those knocks. Double tap to lock the screen, and knock in your secret code to unlock. Tap the display lid once to move your mp3 player to the next track. The possibilities are endless.
FGLRX w/ ACPI and Flicker
Well-- all is going well on the laptop and I guess it would be false advertising if I said that everything is perfect, I have one minor bug. With the fglrx driver I have noticed that my laptop's lcd screen has a very odd flicker to it. This seems to be a common problem but I haven't dedicated any time to a solution as I've been busy and did figure out a work around. For me if the screen is flickering I can press fn+f3 and wait for the screens to shut off. Then by moving the mouse the screens come back and the laptop is no longer flickering. I've messed with the xorg.conf a little bit but havent found anything that seems to fix it. I'm fairly positive that the real issue is being caused by the settings for the acpi on the laptop. I'm going to do some more research and more trial and error tests as to how I can get this puppy purrfect. So if you get the flicker just hit fn+f3 and shake the mouse after they turn black, if this doesnt work try repeating as it always works for me in less than 3 tries usually only two. Check back here and I should have a fix up.
Monday, November 20, 2006
FGLRX single display
It dawned on me, some of you may want fglrx with just the laptop display, so here's the xorg.config for that!
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "aticonfig-Screen[0]" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection
Section "Files"
EndSection
Section "Module"
Load "dbe"
Load "v4l"
Load "extmod"
Load "type1"
Load "freetype"
Load "dri"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]"
Device "aticonfig-Device[0]"
Monitor "aticonfig-Monitor[0]"
DefaultDepth 24
SubSection "Display"
Modes "1400x1050" "1280x1024"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "dri"
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "disable"
EndSection
Suspend and Hibernate with FGLRX
Well an easy enough method to get this all working, just open terminal and type
Find this:
And make it this:
Restart your computer and you should have your FGLRX working.
sudo gedit /etc/default/acpi-support
Find this:
SAVE_VBE_STATE=true
And make it this:
SAVE_VBE_STATE=false
Restart your computer and you should have your FGLRX working.
FGLRX "Pair mode" on the T42
As you may or may not know the drivers I was using were god awfully slow. Today i decided to improve my speed with the fglrx drivers by ati. My goal was to keep the same functionality as before with the improved speed. I got it all working, and damn I'm happy! Now my IBM Thinkpad T42 splitscreens between the internal display and the external display and uses the much quicker fglrx driver to do so. Note-- this is different from the crappy BigDesktop mode by ati because it allows you to drag windows across from one to the other. Well this is the xorg.config that I use now it's heavily modded from some other's I found around Google. The suspend/hibrenate don't work but I'm on my way to figuring that one out.
Section "ServerLayout"
Identifier "BigDesktop"
Screen 0 "aticonfig-Screen[0]" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection
Section "Files"
EndSection
Section "Module"
Load "dbe"
Load "v4l"
Load "extmod"
Load "type1"
Load "freetype"
Load "dri"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]"
Option "DPMS" "true"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[1]"
Option "DPMS"
HorizSync 30 - 86
VertRefresh 50 - 100
EndSection
Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
## Dual Screen
Option "DesktopSetup" "horizontal"
## Direct Rendering
Option "no_accel" "no"
Option "no_dri" "no"
## Overlay Settings
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
## TV-Out Settings
# Option "ForceMonitors" "tmds,auto,notv"
Option "TVFormat" "PAL-B"
Option "TVStandard" "VIDEO"
## Misc Settings
Option "UseInternalAGPGART" "no"
Option "EnablePrivateBackZ" "yes"
BusID "PCI:1:0:0"
Screen 0
EndSection
Section "Device"
Identifier "aticonfig-Device[1]"
Driver "fglrx"
BusID "PCI:1:0:0" # vendor=1002, device=3154
Screen 1
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]"
Device "aticonfig-Device[0]"
Monitor "aticonfig-Monitor[0]"
DefaultDepth 24
#Option "backingstore"
Subsection "Display"
Depth 24
Modes "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0 # initial origin if mode is smaller than desktop
EndSubsection
EndSection
Section "Screen"
Identifier "aticonfig-Screen[1]"
Device "aticonfig-Device[1]"
Monitor "aticonfig-Monitor[1]"
DefaultDepth 24
#Option "backingstore"
Subsection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0 # initial origin if mode is smaller than desktop
EndSubsection
EndSection
Section "dri"
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "disable"
EndSection
Sunday, November 19, 2006
Automatix2
Woah, all i have to say is apps! What's so good about Ubuntu? How damn easy it is to install apps thanks to it's debian base, it's got apt-get with graphical front ends such as synaptic. One of my favorite apps, and one I suggest you take a gander at is called "Automatix2" it's a really great program that will allow you to install some commonly used applications by just checking some boxes. So the install for automatix2 goes as follows
Google automatix2 to find out what it lets you install, I love almost everything inside of it, especially it's network manager application which btw, provides excellent and easy selection of wireless networks. It's actually easier than windows! Another excellent app inside automatix2 is the slab menu, google for a screenshot or just install it-- it's sweet!Edit your sources.list:
Gnome
sudo gedit /etc/apt/sources.listKDE
sudo kwrite /etc/apt/sources.listfrom terminal
Substitute gedit with the text editor of your choice.
Add the following to your sources.list:
NOTE: Kubuntu/Xubuntu users will need to uncomment (remove the # before the word "deb") all the additional sources as well as add the automatix repository.
deb http://www.getautomatix.com/apt edgy mainNow save the file and close it.
Now from terminal do the following:
wget http://www.getautomatix.com/apt/key.gpg.asc
gpg --import key.gpg.asc
gpg --export --armor 521A9C7C | sudo apt-key add -To finish off:
sudo apt-get update
sudo apt-get install automatix2
Dualy Display on T42 Ubuntu
Now I love my laptop's display, its just plain beautiful, but I have a nice Samsung 17" lcd also so I decided, why not use both? Here's what I did. First I asked my bestfriend if he knew anyone who's done this. (my best friend being google of course) and right away he said, Jkraemer know's all about that. So i just modified his xorg.conf a bit to get mine to work.
This will result in having two monitors side by side, laptop left and the external to the right
laptop resolution = 1400x1050
external monitor resolution = 1280x1024
ALWAYS MAKE A BACKUP OF YOUR ORIGINAL xorg.conf
1. Open your xorg.conf file ( sudo gedit /etc/X11/xorg.conf ) then replace with the contents of his.
2. Make following changes, or changes you would like.
I switched the keyboard to english, the drivers to ati and the display resolution of the second monitor to 1280x1024 by changing the following lines:
The first line change is in the first "Section InputDevice"
The second change is in both "Section Device"
The last is in the last "Section Screen"
Note: this is for my laptop which has the 1400x1050 resolution and an external monitor with 1280x1024 resolution, if you want something different, change it accordingly. Also note that this setup has the laptop screen set to be at the left of the external monitor, change "RightOf" to "LeftOf" in "Section ServerLayout"
3. Press save and close gedit
4. Press Ctrl+Alt+Backspace to restart X and hopefully you have a beautiful dual display like mine.
This will result in having two monitors side by side, laptop left and the external to the right
laptop resolution = 1400x1050
external monitor resolution = 1280x1024
ALWAYS MAKE A BACKUP OF YOUR ORIGINAL xorg.conf
1. Open your xorg.conf file ( sudo gedit /etc/X11/xorg.conf ) then replace with the contents of his.
2. Make following changes, or changes you would like.
I switched the keyboard to english, the drivers to ati and the display resolution of the second monitor to 1280x1024 by changing the following lines:
His:
Option "XkbLayout" "de"
Driver "radeon"
Modes "1024x768"
Mine:
Option "XkbLayout" "en"
Driver "ati"
Modes "1280x1024"
The first line change is in the first "Section InputDevice"
The second change is in both "Section Device"
The last is in the last "Section Screen"
Note: this is for my laptop which has the 1400x1050 resolution and an external monitor with 1280x1024 resolution, if you want something different, change it accordingly. Also note that this setup has the laptop screen set to be at the left of the external monitor, change "RightOf" to "LeftOf" in "Section ServerLayout"
3. Press save and close gedit
4. Press Ctrl+Alt+Backspace to restart X and hopefully you have a beautiful dual display like mine.
Installation
My T42 was almost perfect "out of the box" after my edgy install. I just popped in the disc and followed the install guide and bam I was already online. This one's pretty big because a lot of distrobutions do not suppport the wireless without a little bit of work. But Ubuntu supported it perfectly. The first tthing I decided to tackle was getting a dual screen setup so I could use both the laptop display and the external monitor, not cloned but across the two. I used Jkramer's xorg.conf as a guide. See the next post for a more detailed walk through of what I did.
T42buntu
This is my first blog. I can promise it will deal a lot about what I am doing to have a sweet running IBM Thinkpad T42 with Ubuntu Edgy Eft (6.10) on it. It will probabbly have a lot more than that on it though. I'm using it mainly as a way to remember what I did- if it helps you out too, great! If you see any ways to improve what I do or have any suggestions comment or email me.
Subscribe to:
Posts (Atom)