Weblogs for HWilton
#7
Posted by HWilton on Wed 30 Apr 2008 at 11:00
I couldn't help posting this ... because its symptomatic of my experience with learning Linux on my own ...
It all started because i noticed this message when shutting down :
the webserver was running fine, there was nothing to worry about, but it was annoying - so i start searching for a fix.
Unfortunately couldnt find any ... the google search returned many entries for this error - and was confusing even more.
Until i found the most stupid fix there is :
and I just added at the end of the file
And that was it !
It all started because i noticed this message when shutting down :
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
the webserver was running fine, there was nothing to worry about, but it was annoying - so i start searching for a fix.
Unfortunately couldnt find any ... the google search returned many entries for this error - and was confusing even more.
Until i found the most stupid fix there is :
sudo vi /etc/apache2/httpd.conf
and I just added at the end of the file
ServerName localhost
And that was it !
#6
Posted by HWilton on Thu 17 May 2007 at 09:13
There's still a funny issue, with my HP laptop nx6310's acpi :
The battery status stops updating ; which mean the status is accurate just after boot, but wouldnt change later.
The funny part is that if I physically remove the battery, and put it back a few seconds later - the problem is solved for the next reboot (battery status is accurate, and updated) - but that only last until I power off...
Same as that old bug :
https://bugs.launchpad.net/ubuntu/dapper/+source/linux-source-2.6.15/+bug/47561
I start to think that might be an issue wit HP laptop (serie nc/nx) acpi management ?
The battery status stops updating ; which mean the status is accurate just after boot, but wouldnt change later.
The funny part is that if I physically remove the battery, and put it back a few seconds later - the problem is solved for the next reboot (battery status is accurate, and updated) - but that only last until I power off...
Same as that old bug :
https://bugs.launchpad.net/ubuntu/dapper/+source/linux-source-2.6.15/+bug/47561
I start to think that might be an issue wit HP laptop (serie nc/nx) acpi management ?
#5
Posted by HWilton on Tue 13 Mar 2007 at 13:10
I'm using "du -mc" to get the size of each directory. But then i'm trying to limit that list to one level deep.
But i couldnt find the proper grep syntax to do that.
Filtering the du -mc output to echo only lines that has one slash, would do the trick ... but how ?!
And man grep gives cryptic help on the subject :
But i couldnt find the proper grep syntax to do that.
Filtering the du -mc output to echo only lines that has one slash, would do the trick ... but how ?!
du -mc | grep "/"the last command isnt filtering anything (obviously)
And man grep gives cryptic help on the subject :
A regular expression may be followed by one of several repetition oper-
ators:
? The preceding item is optional and matched at most once.
* The preceding item will be matched zero or more times.
+ The preceding item will be matched one or more times.
{n} The preceding item is matched exactly n times.
{n,} The preceding item is matched n or more times.
{n,m} The preceding item is matched at least n times, but not more
than m times.
i've tried
du -mc | grep "/"{1}
but doesnt output anything at all, then
#4
Posted by HWilton on Fri 2 Feb 2007 at 08:04
Yesterday, i've done some troubleshooting ... it seems that the culprit for the whole hibernate episode is the touchpad. On the login window,i pressed ctrl+alt+f1 entering the console in text mode (i thougt reducing the environment to a minimum (no graphic interface) was a good start ! then i forced the sleeping on every 10 seconds
sleepd -u 10Waited and suddenly the lcd went black, and resumed instantly with this message "synaptics reset failed" twice and some details on the driver. [...]
#3
Posted by HWilton on Tue 30 Jan 2007 at 08:27
found a few useful information on the hibernate issue - there's the :
that gives useful info on the battery level
and as well when launching :
its the s2ram
acpi -V
Battery 1: discharging, 93%, 02:35:29 remaining
Thermal 1: ok, 45.0 degrees C
Thermal 2: ok, 48.0 degrees C
Thermal 3: ok, 32.0 degrees C
Thermal 4: ok, 22.0 degrees C
Thermal 5: ok, 0.0 degrees C
AC Adapter 1: off-line
that gives useful info on the battery level
and as well when launching :
hibernate -v3there is also another method to put the unit on sleep mode
i receive among other info this msg : hibernate: Trying method in suspend2.conf... hibernate: Trying method in disk.conf... hibernate: Trying method in ususpend-disk.conf... hibernate: Including configuration from common.conf hibernate: [01] Executing CheckLastResume ... hibernate: [01] Executing CheckRunlevel ... hibernate: [01] Executing LockFileGet ... hibernate: [01] Executing NewKernelFileCheck ... hibernate: [10] Executing EnsureUSuspendCapable ... hibernate: [11] Executing XHacksSuspendHook1 ... hibernate: [59] Executing RemountXFSBootRO ... hibernate: [89] Executing SaveKernelModprobe ... Saved /proc/sys/kernel/modprobe is /sbin/modprobe hibernate: [91] Executing ModulesUnloadBlacklist ... Unloading blacklisted modules listed /etc/hibernate/blacklisted-modules Module version for ipw2100 is 2 Module version for ipw2200 is 2 Unloading blacklisted module psmouse (and dependencies) Unloading psmouse ... Unloading blacklisted module button (and dependencies) Unloading button ... Module version for ndiswrapper is hibernate: [95] Executing XHacksSuspendHook2 ... xhacks: changing console from 7 to 15 hibernate: [98] Executing CheckRunlevel ... hibernate: [99] Executing DoUSuspend ... hibernate: Running /usr/sbin/s2disk ... suspend: Could not stat the resume device file hibernate: [90] Executing ModulesLoad ... Loading module psmouse (from auto)... Loading module button (from auto)... hibernate: [89] Executing RestoreKernelModprobe ... hibernate: [85] Executing XHacksResumeHook2 ... xhacks: changing console back to 7 hibernate: [70] Executing ClockRestore ... hibernate: [59] Executing RemountXFSBootRW ... hibernate: [11] Executing XHacksResumeHook1 ... hibernate: [01] Executing NoteLastResume ... hibernate: [01] Executing LockFilePut ...
its the s2ram
s2ram Machine is unknown. This machine can be identified by: sys_vendor = "Hewlett-Packard" sys_product = "HP Compaq nx6310 (RH322EA#AKB)" sys_version = "F.08" bios_version = "68YDU Ver. F.08" See http://en.opensuse.org/S2ram for details.* so i manage to put the unit in a sleep mode with this, but couldnt resume afterward ... had to hard reset the laptop. i'm currently following this page http://en.opensuse.org/S2ram trying the various options ...
* s2ram -f -a 1
* s2ram -f -a 2
* s2ram -f -a 3
* s2ram -f -p -m
* s2ram -f -p -s
* s2ram -f -m
* s2ram -f -s
* s2ram -f -p
* s2ram -f -a 1 -m
* s2ram -f -a 1 -s
[...]
#2
Posted by HWilton on Mon 29 Jan 2007 at 11:56
install still in progress Apache2 is working fine the trick was to find that file in /etc/default/apache2
and set the flag to 0
on the power management side - no change but i will need some help the laptop (nx6310 HP) current behavior is :
# 0 = start on boot; 1 = don't start on boot NO_START=0
and set the flag to 0
on the power management side - no change but i will need some help the laptop (nx6310 HP) current behavior is :
- running full speed all the time (even with the lid closed) - xfce battery indicator update when charging otherwise only when logout/login or after reboot ?! (not sure) - when the battery is depleted the laptop suddenly shutdowni found a hibernate, suspend2, and so on but at the most i have a blink on the video and everything is back as normal.
NB : suspend2 requires a specific partition to write down memory's content ! so if i cant find a tool to rewrite the partitions without wiping the current partition - i will have to reinstall from scratch ... not sure about all that - its just my guess ... so far
#1
Posted by HWilton on Thu 25 Jan 2007 at 08:20
notes : Installation progress on nx6310 HP . installed xcfe . goodies are great for battery indicator . but power management - nothing work as i was expecting . soundcard fine - installed alsa and pressed M on alsamixer to toggle off to on ;) . scite is a great editor Still pending . timezone is incorrect . battery management / power management (hibernate mode) [ ... ]