You are not logged in.
Pages: 1
Hi there!
I'm completely new to slitaz so, please forgive, if i'm asking stupid questions. I installed slitaz 5 (32bit) to a Dell Mini 1011 (1 gig ram, 16 gig internal sata ssd). All went fine, after some quirks i got the broadcom firmware installed and wifi up and running (only small problem: also i installed all ralink related firmware i did not succeed in getting running a ralink usb wifi stick which in my experience was nearly always running out of the box - i considered it as a kind of "life guard").
Anyway, 2 things i notice:
Seems there is no powermanagement running (like acpi or so)? And no xscreensaver (but that could be installed by tazpkg i presume) ...
And i see the swap is disabled. Is that by default? And if so, could i set in the bootloader something like swapon and point the swap not to a partition but to a file?
Moreover:
I'd like to convert the slitaz desktop to something similar as crunchbang (ie. no lxde, but only openbox - or eventually fluxbox, which i personally prefer for the way how it is configured). Would that be possible/reasonable or would i break in that way the intents of slitaz.
Kernel is very old, seems to me ... (??)
Firefox from the repositories as well ...
TIA for your patience!
Offline
Hi emninger,
Seems there is no powermanagement running (like acpi or so)?
Don't really know, it works for me: screen dims when I unplug my netbook from the outlet, also screens blacks completely after some period of inactivity.
And no xscreensaver (but that could be installed by tazpkg i presume) ...
Yes, it exists but seems not working.
And i see the swap is disabled. Is that by default?
Also don't know, I not using swap anymore since full installation on the HD (2-3 years). And if my memory serves me well swap partition is recognized by system automatically if it exists (otherwise you need to add a line into your [c]/etc/fstab[/c] file.)
And if so, could i set in the bootloader something like swapon and point the swap not to a partition but to a file?
You can add any of your commands into [c]/etc/init.d/local.sh[/c] script. Commands listed here executed at boot time with root permissions. Few examples from my [c]local.sh[/c]:
[c]modprobe acpi-cpufreq
cpufreq-set -g ondemand
echo 5000 > /sys/module/block/parameters/events_dfl_poll_msecs
if [ -f "/sys/class/thermal/thermal_zone0/mode" ]; then
echo -n "enabled" > /sys/class/thermal/thermal_zone0/mode
fi[/c]
Kernel is very old, seems to me ... (??)
SliTaz is intended for old hardware as well… Kernel updating can break more installations over the world 
Firefox from the repositories as well ...
Please use "firefox-official" package instead. I keep it updated as much as possible (41.0.2 is a current and latest version).
Offline
Thanks a lot for your reply.
As for the powermanagement, i'll try with xscreensaver. And with your advice to build/reconfigure a /etc/init.d/local.sh script (i looked there and it did not exist in my - fresh - installation).
I had overseen the firefox-official package. After installing that, all's fine.
Some additional remarks or question, that came up by using Slitaz a bit:
1) I've a problem with the language and timezone settings: Unexpectedly, the language settings sometimes fall back to english (although i did not touch anything). And the time always stayed at GMT until i did not install the ntp client package.
2) I would like to have a better management of the eth0 port as well and probably also to be able to share a wireless connection over eth0 to another computer. Now, i know that can be done in wicd, but it's a bit uncomfortable.
So i tried to install ceni.deb (a nice tool from the aptosid people. I converted to a tazpkg compatible package and installed it, installation apparently was fine. But it did not work - although in Slitaz there is /etc/network.conf (e.g. in slackware, which i use on my main computer, ceni won't work at all because i has a different managing of the network settings). Would tazpkg install a package, when it is not compatible with the organisation of the OS?
Finally i installed connman. But apparently the connmanctl utility is missing in the tools package as well as in the others. Btw, i could not install connman from tazpkg > shell but i had to go in the browser to the slitaz mirros and choose the packages "manually" from there.
A small first impression: I find "tazpkg shell" really a great and intuitive tool! (Compare it to aptitude
)
TIA!
Offline
Hi emninger,
As for swap management. I found this code in the [c]/etc/init.d/system.sh[/c] (from the "slitaz-boot-scripts" package). All done automatically, you just need existing swap partition. And script will add line in your [c]/etc/fstab[/c], for example:
[c]/dev/sda5 swap swap defaults 0 0[/c]
and will activate swap partition.
As for swapping into file… Example how to use windows' page file as a swap file:
[*]Prepare once:
[c]root@slitaz:/# mkswap /mnt/acer/pagefile.sys
Setting up swapspace version 1, size = 1585442816 bytes
UUID=d1e71e74-9115-4177-a8bc-4b891649eb46[/c]
[*]Activate it now:
[c]root@slitaz:/# swapon /mnt/acer/pagefile.sys[/c]
Strange you don't find [c]local.sh[/c] since this file belongs to the slitaz-boot-scripts package. And here is the default content of [c]local.sh[/c] script.
As for power management, you can try the new "xorg-xset" package. Az_ua added extra-script there, so you'll find icon in the menu and the dialog allowing you to set display-off time. Download newest package from Cook site, I not sure you'll find it today on the SliTaz mirror yet (and be able to install it using just tazpkg interface).
the language settings sometimes fall back to english
How to reproduce?
And the time always stayed at GMT
I not found such a problems, and I not using ntp. All you need is one of the "locale-*" package installed. It contains timezone data as well (I installed "locale-ru" and selected Europe/Kiev timezone.) English locale package "locale-en" is a part of SliTaz-Core and seems you'll find timezone you need "from the box".
That's all I can answer.
Offline
@emninger
connman-tools now contains connmanctl
[c]wget http://cook.slitaz.org/packages/connman-tools-1.21.tazpkg[/c]
[c]tazpkg install connman-tools-1.21.tazpkg --forced[/c]
Auto-running poweroff to software shutdown slitaz when pressing the power button on the computer requires install and configuration of acpid.
linux-acpi and acpid packages have to be installed.
Auto-start acpid on boot: add acpid to /etc/rcS.conf RUN_DAEMONS=
Offline
Thanks to you all! Unfortunately, in some way i "shot down" my network interfaces. May be while experimenting with connman, i don't know(?). But i'd need some help to get out of my odd situation
Wifi does not get used anymore. It is there, i can see the ESSID but i cannot log-in anymore. And ethernet too does not work. Ich checked the connection with this computer (a Samsung laptop running slackware) and it is fine. I'ma bit out of ideas where to look exactly. /etc/network.conf is ok and as far as i can see wpa_supplicant as well.
'dmesg | grep wlan' tells me:
> dmesg | grep wlan tells me:ADDRCONF (NETDEV_UP): wlan0: link is not ready
I tried 'rfkill unblock wlan' but to no extent
May be someone here has an idea?
Thanks a lot in advance
Offline
I add some infos: Since i do not have internetaccess on the mini at all, i installed "handish" the connman packages to have better management of the net devices (eth0 and wlan0). In connmanctl i can enable/disable both fine. But when i try to configure them (e.g. 'connmanctl config wifi --autoconnect yes') i get the error msg:
code
Error wifi: Method "SetProperty" with signature "sv" on interface "net.connman.Service" doesn't exist
code
Same goes for eth0 (ethernet). This corrisponds to what happens using default (SliTaz) WiFi configuration: I can enable/disable wifi. With wifi enabled i see the router but i cannot connect because the device is not ready. I googled for this error but mainly i found cases out of the android world and bluetooth (???)
In dmesg i found something interesting but far beyond my limited linux knowledge:
----cfg80211: Calling CRDA to update world regulatory domain
b43-phy0: Broadcom 4312 WLAN found (core revision 15)
ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Registered led device: b43-phy0::tx
Registered led device: b43-phy0::rx
Registered led device: b43-phy0::radio
Broadcom 43xx driver loaded [ Features: PML ]
Adding 1048572k swap on /swapfile. Priority:-1 extents:4 across:1073148k SS
[drm] initialized overlay support
fbcon: inteldrmfb (fb0) is primary device
NET: Registered protocol family 10
b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
Console: switching to colour frame buffer device 128x36
fb0: inteldrmfb frame buffer device
drm: registered panic notifier
[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
ADDRCONF(NETDEV_UP): wlan0: link is not ready
r8169 0000:04:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
process `pool' is using deprecated sysctl (syscall) net.ipv6.neigh.default.retrans_time; Use net.ipv6.neigh.default.retrans_time_ms instead.
The scan_unevictable_pages sysctl/node-interface has been disabled for lack of a legitimate use case. If you have one, please send an email to linux-mm@kvack.org.
usb 2-1: USB disconnect, device number 2
atkbd serio0: Unknown key pressed (translated set 2, code 0x84 on isa0060/serio0).
atkbd serio0: Use 'setkeycodes e004 <keycode>' to make it known.
atkbd serio0: Unknown key released (translated set 2, code 0x84 on isa0060/serio0).
atkbd serio0: Use 'setkeycodes e004 <keycode>' to make it known.
b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
ADDRCONF(NETDEV_UP): wlan0: link is not ready
-----
What does this
process `pool' is using deprecated sysctl (syscall) net.ipv6.neigh.default.retrans_time; Use net.ipv6.neigh.default.retrans_time_ms instead.
The scan_unevictable_pages sysctl/node-interface has been disabled for lack of a legitimate use case. If you have one, please send an email to linux-mm@kvack.org.
mean?
Offline
The default slitaz network script conflicts with connman,wicd,network-manager,etc.. or any other program you attempt to use to connect to a network. You can't disable the slitaz network script because it sets up loopback and hostname.
My suggestion is to remove connman and use slitaz networking like the rest of us.
Please use google search errors.
The scan_unevictable_pages sysctl/node-interface has been disabled for lack of a legitimate use case.
fedora bug report: https://sourceware.org/bugzilla/show_bug.cgi?id=13650
Status: Resolved WONT FIX
Offline
mojo:
Auto-running poweroff to software shutdown slitaz when pressing the power button on the computer requires install and configuration of acpid.
Hi mojo,
Can you elaborate on this "configuration of acpid" bit? I'd like to have this feature but don't know how.
[c]tazpkg -gi acpid[/c]
[c]sed -i "s/^RUN_DAEMONS=\"\(.*\)\"/RUN_DAEMONS=\"\1 acpid\"/" /etc/rcS.conf[/c]
Offline
@ mojo: Thanks for your interest. But that's what i did - and no network showed up. So i tried the way of other clients. Without them nothing changes.
Moreover, i do not see any tool that handles ethernet ... (?)
In any case, in my case seems something related to the kernel warning i quoted from dmesg puts both (ethernet and wifi in state of inactivity, which cannot be changed neither from user nor from root. So ...
May be someone familiar with kernel issues knows a way how to pass by that "process `pool' is using deprecated sysctl (syscall) net.ipv6.neigh.default.retrans_time; Use net.ipv6.neigh.default.retrans_time_ms instead. " thing (wich seems to be the problem) ...??
In the boot.log0 i found this:
-----
Change network settings in /etc/wpa/wpa.conf
Starting wpa_supplicant for WPA/WPA2-PSK...
Starting udhcpc client on: wlan0...
Sending discover...
Sending discover...
Sending discover...
No lease,forking to background
Connecting to <my ESSID here>...
.....Failed to connect to non-global ctrl_ifname: (null) error: No such file or directory
-----
TIA
BTW I DID a lot of google search for that error msgs - most i found where android related
Offline
I think i figured out the wireless issue:
I removed all connman & wicd related packages and I deleted /etc/wpa/wpa.conf & wpa.conf.old to start wifi newly. And, effectively it seems to work.
Just 2 small questions in this context:
wpa_supplicant is installed by default, correct?
Is there another way to manage ethernet other than editing network.conf?
Thanks again!
Offline
The packages.list is in the folder for each flavor : http://hg.slitaz.org/flavors/file/520b166b4f8c
Any flavor that includes linux-wireless(kernel modules for wireless adapters) includes wpa_supplicant
If you don't need more than one adapter up at a time pre-configure a network.conf file for each adapter/connection rename it and restart network.sh appending absolute path to the config file. It uses that config instead of default /etc/network.conf
[c]/etc/init.d/network.sh restart /home/tux/ethernet[/c]
I use this method to rapidly connect to different secure wifi access points or to use my ethernet adapter on my laptop.
More info: http://doc.slitaz.org/en:guides:network-script
If you need more than one network adapter up at the same time you can make a script in /etc/init.d/local.sh like I did in my internet connection sharing tutorial.
http://forum.slitaz.org/topic/internet-connection-sharing/page/2#post-1335
Offline
@ mojo: Thanks a lot. Very instructive!
Sometimes it comes handy to be able to share a a wan connection (made by wifi) over ethernet to another computer (or even the other way around - which would be more difficult i presume).
I struggled a lot with doing this on a laptop running slackware using wicd ...
Offline
Re: http://forum.slitaz.org/topic/powermanagement-swap#post-39533
I don't remember posting a code snippet. Maybe I'm crazy. Or mojo edited my post instead of replying to it?
Anyway, acpid does appear in RUN_DAEMONS in rcS.conf. But power button does nothing.
edit: the Xorg log reports that Power button is configured, and xev reports keysym XF86PowerOff when I press it.
Offline
Hi llev,
No, you're not crazy. I was subscribed to this topic and I found no code snippet on e-mail.
Here (again) my solution for the Power button.
(Seems I should to add it to the default SliTaz configs?)
Open your [c]~/.config/openbox/rc.xml[/c] file in the text editor. It'll look like this: http://hg.slitaz.org/slitaz-configs/file/6c3545ad6ed7/rootfs/etc/xdg/openbox/rc.xml#l296
Find line with [c]</keyboard>[/c] (closing) tag: it is only one line per file (and link above already pointed to the line #296 with this tag.)
Copy and paste next code snippet above [c]</keyboard>[/c] line (in other words: between lines #295 and #296 in the example above):
[c]<!-- my additional hot keys: START -->
<keybind key="XF86AudioMute">
<action name="Execute">
<command>amixer set Master toggle</command>
</action>
</keybind>
<keybind key="XF86AudioRaiseVolume">
<action name="Execute">
<command>amixer set Master 5%+</command>
</action>
</keybind>
<keybind key="XF86AudioLowerVolume">
<action name="Execute">
<command>amixer set Master 5%-</command>
</action>
</keybind>
<keybind key="XF86AudioPlay">
<action name="Execute">
<command>audacious --play-pause</command>
</action>
</keybind>
<keybind key="XF86AudioNext">
<action name="Execute">
<command>audacious --fwd</command>
</action>
</keybind>
<keybind key="XF86AudioPrev">
<action name="Execute">
<command>audacious --rew</command>
</action>
</keybind>
<keybind key="XF86Sleep">
<action name="Execute">
<command>sudo pm-suspend</command>
</action>
</keybind>
<keybind key="A-Print">
<action name="Execute">
<command>mtpaint -s</command>
</action>
</keybind>
<keybind key="XF86PowerOff">
<action name="Execute">
<command>poweroff</command>
</action>
</keybind>
<keybind key="C-Print">
<action name="Execute">
<command>gtk-screenshot -i</command>
</action>
</keybind>
<!-- my additional hot keys: END -->[/c]
Here you find 10 key binding definitions — you free to remove few of them, or edit, or add your own ones. It's very old config, and really I use only two keys from it:
[*]run "mtpaint -s" on [c]<Alt>+<PrtScr>[/c] pressed and
[*]run "poweroff" on Power Button pressed.
________
[c]tux@slitaz:~$ which poweroff
/sbin/poweroff[/c]
________
PS. Oh, forget to mention. I close all my programs by close buttons, or with [c]<Ctrl>+D[/c], [c]<Ctrl>+Q[/c], [c]<Alt>+F4[/c] and then (when all programs are closed) I press Power Button.
PPS. I've added few keys to the package "slitaz-configs-264".
Offline
Hi Aleksej,
Really nice, many thanks. rc.xml updated & topic marked as favorite!
Offline
Pages: 1
[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.59 MiB (Peak: 1.77 MiB) ]