06-22-2010
Quote:
Originally Posted by
verdepollo
Also, don't you find irritating that most laptop CD drives pop the tray just a little and then you have to slide it with your fingers in order to fully open it?
Not really, given that the motor and mechanics for opening and closing, and sensors for checking for obstructions (eg. a badly placed disk) would take up precious space in an laptop.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have come across a command
echo "123 abc" | sed 's/*/& &/'
output is
123 123 abc
then i tried in different ways to get 123 abc abc as output.
Can u please explain me the importance of & in the above command.
Thank you
- Chanakya (7 Replies)
Discussion started by: Chanakya.m
7 Replies
2. IP Networking
Nice pictures, really free from virtual swingers club !!!!
Anal sex
Body art
Gay
Hardcore
Lesbian
Oral sex
Cum
XXX
Models
Private Image Galleries
Private XXX photo
Free!!!
Say no to Spamers!!! Auto forum spam msg replacer by Swinguru © (1 Reply)
Discussion started by: Green_Monkey23
1 Replies
3. Shell Programming and Scripting
#!/bin/ksh
for i in *.log*
do
ls $i|sed 's/\.log$//g' | while read file
do
echo "file $file is Running" >> lls.txt
echo "***************">> lls.txt
done
done
------------------------------------------------------------------
the output is :
file AdapterCCProvisioningInterface... (9 Replies)
Discussion started by: ali560045
9 Replies
4. Shell Programming and Scripting
Hello all,
i have a batmail process running on my machine(java process).
i just need a script we should detect whether the batchnail is running or not.If not it should restart it.
Can anyone assist me on this? (1 Reply)
Discussion started by: Rayzone
1 Replies
5. Shell Programming and Scripting
I have a feeling my eyes are burned and I am just missing something small here but can somebody tell me why this is not working....
#!/bin/ksh
Trunk_Path=/lcl/sit/apps/Tivoli
types="-name '*.sh' -o -name '*.conf' -o -name '*.rules' -o -name '*.dat' -o -name '*.props' -o -name '*.sql' -o -name... (10 Replies)
Discussion started by: LRoberts
10 Replies
6. Shell Programming and Scripting
Hi,
i have a client requirement to post the files into generic folder named as "source".file identification is to retrieve Publication code (Instance name) from the file name.So thereafter we move the files to different instances of specific folders for the same unix server.(means if the file... (2 Replies)
Discussion started by: kirankumar
2 Replies
7. Shell Programming and Scripting
Hi all,
I have two files in my folder
1.index.jsp
2.maintenance.jsp
Once hit the URL in IE,It will call the index.jsp file than application working fine.
I want to some maintenance in my application, during the application maintenance than it will... (1 Reply)
Discussion started by: lkeswar
1 Replies
8. UNIX for Dummies Questions & Answers
Hi I have the below file
Name=abc
Yr=2011
Mon=05
My script should be in such a way that whenever I run it then
Month should increment by 1 and if the month is 12 then when
I run the script then year should incremented by 1 and month
Should become 01(I.e jan)
Thanks for the help in... (6 Replies)
Discussion started by: kishu
6 Replies
9. Shell Programming and Scripting
Hi,
sorry for inconvenience..wrong query posted.
Thanks for your help.
Thanks (1 Reply)
Discussion started by: kirankumar
1 Replies
10. Shell Programming and Scripting
Frequently we need to stop or start services on Linux systems.
For exmaple : To start or stop vsftpd daemon
# /etc/init.d/vsftpd start
or
# /etc/init.d/vsftpd stop
Following script will check the vsftpd service and if it is running, it will be stopped or vice-versa.
# cat... (5 Replies)
Discussion started by: snjksh
5 Replies
ASMC(4) BSD Kernel Interfaces Manual ASMC(4)
NAME
asmc -- device driver for the Apple System Management Console (SMC)
SYNOPSIS
To compile this driver into the kernel, place the following line in your kernel configuration file:
device asmc
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
asmc_load="YES"
DESCRIPTION
The asmc driver controls the Apple System Management Console (SMC for short) found on Intel Apple systems.
The SMC is known to be found on the following systems:
o MacBook
o MacBook Pro
o Intel MacMini
o Mac Pro
o MacBook Air
o Intel iMac
With this driver, you can configure your keyboard backlight brightness, check temperatures of several sensors, check the speed of the inter-
nal fans and check the status of the Sudden Motion Sensor.
Variables related to the SMC control and inspection are exported via sysctl(3) under the device tree dev.asmc.
KEYBOARD BACKLIGHT
On MacBook Pro systems, you can control the keyboard brightness by writing a value to the dev.asmc.%d.light.control sysctl MIB.
The following sysctl MIBs contains the raw value returned by the left and right light sensors: dev.asmc.%d.light.left or
dev.asmc.%d.light.right.
TEMPERATURES
The number of temperature sensors and their description varies among systems. You can inspect the temperature sensors on your system by
traversing the dev.asmc.temp sysctl MIB.
All values are in degrees celsius.
SYSTEM FANS
The dev.asmc.fan.%d sysctl tree contains the leaf nodes speed, safespeed, minspeed, maxspeed and targetspeed. Each of these leaf nodes rep-
resent the current fan speed, the safest minimum fan speed, the mininum speed and the maximum speed respectively.
All values are in RPM.
SUDDEN MOTION SENSOR
The Sudden Motion Sensor (SMS for short) is a device that detects laptop movement and notifies the operating system via an interrupt. The
sysctl MIBs present under dev.asmc.sms all relate to the SMS.
The most interesting usage of this device is to park the disk heads when the laptop is moved harshly. First, you need to install ataidle(8)
(ports/sysutils/ataidle) and then configure devd(8) the following way:
notify 0 {
match "system" "ACPI";
match "subsystem" "asmc";
action "/usr/local/sbin/ataidle -s X Y";
};
Do not forget to change the X and Y values in the command above.
Also, please note that parking the disk heads too many times can dramatically reduce your hard drive's life span. Do not rely solely on the
SMS to protect your hard drive: good care and common sense can increase your hard drive's life.
SEE ALSO
ataidle(8) (ports/sysutils/ataidle), devd(8), sysctl(8)
HISTORY
The asmc driver first appeared in FreeBSD 8.0.
AUTHORS
Rui Paulo <rpaulo@FreeBSD.org> (Google Summer of Code project).
BUGS
Support for the latest models was never tested and is most likely not fully working.
BSD
July 27, 2009 BSD