Showing posts with label kernel. Show all posts
Showing posts with label kernel. Show all posts

Saturday, June 26, 2010

Headphone jack sense problem in Ubuntu 10.04 Lucid Lynx

After upgrading Dell Vostro 1014 laptop to Ubuntu 10.04 Lucid Lynx I found the old problem of headphones failing to mute the internal laptop speakers when plugged remains in the new release as well.

Three months ago I posted a workaround for Ubuntu Jaunty users in this post ALSA Jack Sense problem in Jaunty. However this solution doesn't work in Ubuntu Lucid.

To solve this issue you need to install linux-backports-modules-alsa-lucid-generic package and reboot your computer.


sudo apt-get update
sudo apt-get install linux-backports-modules-alsa-lucid-generic

Now speakers should mute as soon you plug in your headphones. If that doesn't work try to pass the correct model name by adding the line to /etc/modprobe.d/alsa-base.conf file. options snd-hda-intel model=dell-vostro enable=1 index=0

Monday, September 21, 2009

Configure Broadcom Wireless Drivers

Getting the Broadcom Wireless cards to work with gnu/Linux was bit tricky. Even though linux kernel included the free software b43 driver for a long time, getting these wireless cards working needed some manual configuration. In this post I am testing Ubuntu Karmic and b43 driver to configure Broadcom BCM4311 Wifi card. .
$ lspci -vnn | grep 14e4
04:00.0 Network controller [0280]: Broadcom Corporation BCM4311 802.11b/g WLAN [14e4:4311] (rev 01)
Subsystem: Broadcom Corporation Device [14e4:0465]
06:00.0 Ethernet controller [0200]: Broadcom Corporation NetLink BCM5906M Fast Ethernet PCI Express [14e4:1713] (rev 02)

To get started I used 'Hardware Drivers' to find and load the needed drivers. From main menus select System > Administration > Hardware Driver program or type ' sudo jockey-gtk ' in a terminal. The Hardware Drivers program found two drivers on this machine 'Broadcom B43 wireless Driver' and 'Broadcom STA wireless driver'. I selected the first and then pressed the 'Activate' button. The program connects to the Internet and downloaded the driver, so make sure you have a wired connection setup before hand.


After the driver was setup and rebooting the computer the wireless works perfectly with Network Manager.
Most people use Ubuntu LiveCD to try if their hardware is supported. As of writing this post the Ubuntu LiveCD doesn't configure and load the broadcom drivers automatically.

Wednesday, October 8, 2008

Gnu/Linux Kernel Tutorial, IEEE Bangalore

IEEE BANGALORE SECTION ANNOUNCES TUTORIAL ON Gnu/Linux KERNEL

DATE: 18th October 2008
VENUE: Atria Hotel Palace road, Bangalore

The Tutorial aims at increasing the technical excellence of programmers in defining technologies in free software domain. This is targeted at programmers in the industry and engineering students.

Schedule:

18th October, 2008

08.30 AM        Registration

09.00AM Inauguration and talk by IEEE Bangalore Section

09.30AM Basics of Gnu/Linux Programming & Tools
1.Simple C Programs
2.Simple Makefiles
3.Gcc, stace, Itrace, gdb, objdump, nm, LD_PRELOAD
4.Quick overview of a typical hardware on which Gnu/Linux runs (CPU,
Memory, Interrupt controller, IO Bus etc)

5.Overview  the Gnu/Linux Kernel
•       Kernel Layout
•       Coding Style
•       Important Subsystems
•       Kernel configuration
6.Building and booting a new kernel
    EXERCISE

10.30 AM: Tea

10.45AM Gnu/Linux Kernel Internals – An Overview
•       Process and threads 
•       Memory management
•       File systems
•       Interrupts and exceptions & System Calls
•       Kernel Synchronization
•       EXERCISE

1.00 PM: Lunch

2.00PM  Device Drivers
•       Kernel Module programming
•       Char and block drivers
•       Ioctls
•       Writing simple char device driver
       EXERCISE

3.15 PM: Tea

3.30 PM Kernel Debugging
•       Printk
•       Dynamic instrumentation techniques
•       System Tap [EXERCISE]
•       Kerec/kdump/ crash analysis
       EXERCISE

5.00 PM Free software philosophy
•       Introduction to the open source community
•       How to contribute
•       New exciting areas of work in the kernel

5.30 PM: Conclusion

Pre requisites

It is expected that all participants will have:

•       Basic knowledge of operating Systems
•       Good working knowledge of C
•       Hands-on experience desirable
•       Kernel   programming experience is  a bonus
•       Basic scripting knowledge (ex: shell scripts)
•       Working knowledge of Gnu/Linux

Resource Persons

Arun Krishnan, Huawei Technologies India.
Srivatsa Vaddagiri, Linux Technology Centre, IBM India
Balbir Singh, Linux Technology Centre, IBM India
Ananth N Mavinakayanahalli, Linux Technology Centre, IBM India
Sachin Sant, Linux Technology Centre, IBM India
Ankita Garg, Linux Technology Centre, IBM India


Course Fee per participant

Non-member: Rs. 1200/-;  Student  Rs. 600/-
IEEE member Rs. 1000/- ;  IEEE Student member Rs. 500/-

The course fee includes tutorial kit, inter session tea and lunch.


Organizing Committee

M. M. Babu Narayanan, IEEE Bangalore Section
Hitesh Mehta, IEEE Bangalore Section
Ravikiran. A, IEEE Bangalore Section
Dr. Debabrata Das, IEEE Bangalore Section
Dr. T. Srinivas, IEEE Bangalore Section

Please send your registration to:  
Mr. M.M. Babu Narayanan
Chair – Professional Activities
IEEE Bangalore Section
Central Power Research Institute
Sir C.V. Raman road
PB No. 8066,  Sadashivanagar PO,
Bangalore – 560 080
Telefax :  23605367
Email: babu@cpri.in

Thursday, June 19, 2008

Autoclean Linux Modules

Here is a excerpt from The Linux Kernel guide produced by The Linux Documentation Project (TLDP).
Modules can be removed using the rmmod command but demand loaded modules are automatically removed from the system by kerneld when they are no longer being used. Every time its idle timer expires, kerneld makes a system call requesting that all unused demand loaded modules are removed from the system. The timer's value is set when you start kerneld; my kerneld checks every 180 seconds. So, for example, if you mount an iso9660 CD ROM and your iso9660 filesystem is a loadable module, then shortly after the CD ROM is unmounted, the iso9660 module will be removed from the kernel.

Getting rid of unused modules from memory is a good idea but I didn't find a way to doing this with latest 2.6.x kernels. Can anyone throw some light on this?

Thursday, January 31, 2008

Error messages on the console screen

Debian console getting flooded with error messages and verbose warnings can be quite trying for anyone.

Previous versions Debian Reference (Section 8.6.8) used to provided a solution viz… Running “dmesg -n X” (where X is the error levels [1..7) to quiet on-screen error messages until next reboot. Or set KLOGD=”-c 3” in etc/init.d/klogd script and run /etc/init.d/klogd restart for more lasting effect.

David Clarke provides the new way of handling console errors nicely.

Add a single line is your /etc/sysctl.conf and upon every reboot the given values are set to the linux kernel printk() .

kernel.printk = 3 4 1 7

The four values we are setting in /proc/sys/kernel/printk stand for:

  • console_loglevel – messages with a priority higher than this will be printed to the console
  • default_message_loglevel – messages without an explicit priority will be printed with this priority
  • minimum_console_loglevel – minimum (highest) value to which console_loglevel can be set
  • default_console_loglevel – default value for console_loglevel

These values influence printk() behavior when printing or logging error messages. See syslog(2) for more info on the different loglevels. For more information on other /proc files is read LinuxInsight /Proc Documentation

GNU/Debian Linux don't power off after shutdown

To avoid any problems with your filesystems always shutdown your debian box the neat way. After a recent upgrade my computer stopped powering off after shutdown.

Thanks to the Rainer Dorsch for pointing me in the right direction.

Step One

1. First append this line to your /boot/grub/menu.lst if you are using GRUB or lilo.conf if you are using LILO.

append="acpi=off apm=power_off"

Step Two

2. Add this line to your /etc/modules

apm power_off=1

After a reboot, next time you issue the shutdown command your computer should power off automatically.

Popular Posts