XenialDog 64bit (Ubuntu 'Xenial Xerus' LTS, 64-bit)

A home for all kinds of Puppy related projects
Message
Author
wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

#341 Post by wiak »

belham,

Yes, I can read and write and even speak English - I do not speak Bulgarian but wish I did. I have trouble with your 'technical' language however.

I did note your claim you tested zram via loading browser tabs. However, those of us who know such tests realise your claim isn't a good one because loading browser tabs like that eventually needs swap on low RAM systems and the advantage of zram becomes obvious at that stage. You didn't discover that, hence you didn't do your 'browser loading tests' adequately, sorry.

https://www.kernel.org/doc/Documentatio ... v/zram.txt

wiak
Last edited by wiak on Mon 22 Jan 2018, 09:41, edited 2 times in total.
backi
Posts: 1922
Joined: Sun 27 Feb 2011, 22:00
Location: GERMANY

#342 Post by backi »

It also worked as far as i remember also in Dpup Exprimo .....works also in Tahrpup.....but not in each Puppy...can`t remember exactly.

Thanks for opening seperate Zram Thead .Interesting Topic .

Cheers !
wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

#343 Post by wiak »

backi wrote:It also worked as far as i remember also in Dpup Exprimo .....works also in Tahrpup.....but not in each Puppy...can`t remember exactly.

Thanks for opening seperate Zram Thead .Interesting Topic .

Cheers !
Did you open separate zram thread backi or someone else or are you requesting for such a thread to be opened? Just open one yourself I suggest, or I can if you like. Then we could blank our posts about it here and copy main stuff to new thread? Certainly a lot of zram/zswap issues/ideas to explore.

By the way, I find it useful to make a copy of the /usr/bin/init-zram-swapping bash script (under other name) to make mods to it for testing zram in different configurations and for different uses (e.g. making RAM disks out of it using the likes of mkfs -t ext4 /dev/ram1). When using the systemd service method of using zram you can disable it simply by 'systemctl stop zram-config.service' or by running script '/usr/bin/end-zram-swapping' Can start it again using either 'systemctl start zram-config.service' or by running '/usr/bin/init-zram-swapping'.

wiak
backi
Posts: 1922
Joined: Sun 27 Feb 2011, 22:00
Location: GERMANY

#344 Post by backi »

Hi wiak !

Can only find interrupted Threads here :
http://www.murga-linux.com/puppy/viewto ... 1587d507c2

http://www.murga-linux.com/puppy/viewto ... 257c2a98a8

http://bkhome.org/news/201701/overlayfs ... -zram.html

Think it is better to start separate Zram Thread from Scratch .
Since my English is not so fluent and my technical knowledge and Expression is quite limited ,you would do me a favor if you would open this Thread .But .......don`t hurry..... keep it cool man .
wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

#345 Post by wiak »

Okay backi,

Late here where I am, so I'll open thread tomorrow. Mainly cos it would be good to keep the tested/discovered info/ideas together, since it is an interesting/useful topic, in one thread and to free up this xenialdog64 thread of Fred. IMO anyone with 2GB or less of RAM would be advised to use zswap or zram - the benefits are actually obvious to anyone with a brain that still works.

wiak
backi
Posts: 1922
Joined: Sun 27 Feb 2011, 22:00
Location: GERMANY

#346 Post by backi »

Hi wiak !

Got it .
Glad to hear :)

Regards !
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#347 Post by fredx181 »

Hi backi, wiak, dancytron, belham

A new thread about zram will be nice, but no need to blank posts IMO.
No worries, It's ok by me here, interesting discussion, btw, thanks !
@backi your english is fine ! :)

Fred
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#348 Post by fredx181 »

New topic about zram and zswap here (thanks wiak !)
http://www.murga-linux.com/puppy/viewtopic.php?t=112599

Fred
Ushichan
Posts: 7
Joined: Sat 27 Jan 2018, 03:38

SUSPEND function not working

#349 Post by Ushichan »

is there a way to suspend as the install of this pet did not work and also holding hown the power button has the option to suspend but does not work on my laptop a hp elitebook 2540p intel i7. Im running a persistent usb install works flawlessly otherwise

I got the pet from
http://murga-linux.com/puppy/viewtopic.php?t=76894
wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

Re: SUSPEND function not working

#350 Post by wiak »

Ushichan wrote:is there a way to suspend as the install of this pet did not work and also holding hown the power button has the option to suspend but does not work on my laptop a hp elitebook 2540p intel i7. Im running a persistent usb install works flawlessly otherwise

I got the pet from
http://murga-linux.com/puppy/viewtopic.php?t=76894
Hi Ushichan,

I doubt that pet is relevant since it is very old from 2012 or so.

I have an older elitebook but have never used suspend or hibernate with it and haven't tried as yet. However, I came across this post, which may or may not help or be relevant:

https://bugs.launchpad.net/ubuntu/+sour ... ug/1574120
Bruno Santos (bsantos) wrote on 2016-04-24: comment #5
Adding HandleLidSwitchDocked=suspend in /etc/systemd/logind.conf solved it in my system, but suspend was flawless before upgrading to 16.04.
Bruno followed that config file change with a reboot.

EDIT: From same thread:
Bob (caltinay) wrote on 2017-06-15: comment #106
I have the same issue on a HP ZBook G3 running Debian with the 4.11 kernel from experimental and after reading comment #103 I tried
rmmod hp_wmi
and this fixed it!
Carlo (carlo-b) wrote on 2017-04-10: #103
Just FYI I posted this https://lkml.org/lkml/2017/4/9/57 yesterday. Still to be reviewed.
Hope it helps.
i.e. See: https://lkml.org/lkml/2017/4/9/57
Permanent fix might thus be found in upgraded kernel.

You may find more useful information via that bugs.launchpad thread link given above.

wiak
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#351 Post by fredx181 »

For info, the hp-wmi module is already blacklisted by default in Xenialdog.
I can't remember exactly why I did that, something to do with WiFi not working due to rfkill and the blacklisting fixed that, in /etc/modprobe.d/blacklist.conf:

Code: Select all

blacklist hp-wmi
EDIT: @Ushichan, backi fixed suspend not working problem with acpitool:
http://murga-linux.com/puppy/viewtopic. ... 465#978465

Fred
Ushichan
Posts: 7
Joined: Sat 27 Jan 2018, 03:38

#352 Post by Ushichan »

could I turn off the blacklisting instead as I dont use wife and never will, only ethernet cables here to avoid radiation for our kids

I tried to open as by finally finding filemnt when searching system files but cannot do as you suggested with only open as text as the closest option to your suggestion
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#353 Post by fredx181 »

Ushichan wrote:I tried to open as by finally finding filemnt when searching system files but cannot do as you suggested with only open as text as the closest option to your suggestion
Should open automatically with leafpad when clicking on /etc/modprobe.d/blacklist.conf from pcmanfm or rox, for me it does, not for you ?
For other files you may need to associate to leafpad, by "Open with..." and choose leafpad from list

Fred
Ushichan
Posts: 7
Joined: Sat 27 Jan 2018, 03:38

#354 Post by Ushichan »

Hello Fred
I couldnt get this window or the ability to open with anything but geany so cannot get to the screen window you suggest....very dumb user here :(
fredx181 wrote:@backi, thanks ! strange that suspend doesn't work for you, it works for me with 'pm-suspend'
If you have time can you do in terminal (and what's the message?):

Code: Select all

pm-suspend
@Null_ID, indeed what rcrsn51 suggested works , but you can also use filemnt, it just needs association (supports also .2fs, .3fs .4fs, besides iso, squashfs and sfs) just right-click on the pupsave file > open with, and type filemnt as custom command line, see pic below (for pcmanfm)

Fred
fredx181 wrote:
Ushichan wrote:I tried to open as by finally finding filemnt when searching system files but cannot do as you suggested with only open as text as the closest option to your suggestion
Should open automatically with leafpad when clicking on /etc/modprobe.d/blacklist.conf from pcmanfm or rox, for me it does, not for you ?
For other files you may need to associate to leafpad, by "Open with..." and choose leafpad from list

Fred
Yes thank you Fred I was able to do as you said here but still dont know what to do after clicking on blacklist.conf. Still having trouble setting up open with leafpad as it still has geany as the only option
wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

#355 Post by wiak »

fredx181 wrote:For info, the hp-wmi module is already blacklisted by default in Xenialdog.
I can't remember exactly why I did that, something to do with WiFi not working due to rfkill and the blacklisting fixed that, in /etc/modprobe.d/blacklist.conf:

Code: Select all

blacklist hp-wmi
EDIT: @Ushichan, backi fixed suspend not working problem with acpitool:
http://murga-linux.com/puppy/viewtopic. ... 465#978465

Fred
The only thing is, it seems some would (understandably) like suspend to work on closing the lid, which it is supposed to I think. That's what I was posting about, but admit to never having tried it myself! Basically, I was however curious if anyone tried the method:
Adding HandleLidSwitchDocked=suspend in /etc/systemd/logind.conf
Of course I can try it myself sometime, though really I never care to suspend/hibernate my system

EDIT: well method suggested above didn't work for me on my HP Elitebook 2530p in a quick test. Having said that, my elitebook is a strange old beast which for unknown reason (maybe just BIOS battery - haven't changed it as yet) takes over a minute to even reach grub4dos menu (fine after that) so the suspend idea needs further testing by anyone with more reliable machine I'd say... EDIT2: Hmmm, I'm not sure if it worked or not - discovered I was still logged in the murga forum when lid was opened, but fan seemed to keep running all the time (but then again, I'm not using battery power and have to check if BIOS has fan always on when on mains power.

wiak
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#356 Post by fredx181 »

Ushichan wrote:I couldnt get this window or the ability to open with anything but geany so cannot get to the screen window you suggest....
Not completely sure if I understand well your problem, anyway see screenshot how to associate from pcmanfm filemanager, e.g. with leafpad (under accessories)

Once you opened the file /etc/modprobe.d/blacklist.conf, to un-blacklist, remove the line:

Code: Select all

blacklist hp-wmi 
Save the file and reboot.
(I doubt if that will help for your suspend problem, but worth trying anyway)

Fred
Attachments
open_with.png
Open with...
(45.87 KiB) Downloaded 449 times
wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

#357 Post by wiak »

Am at early stage of writing a simple app to control webcam parameters and for image/video previews was hoping to use:

Code: Select all

mpv av://v4l2:/dev/video0

or 

mpv tv://
However, I find there is a lag in the mpv playing webcam video of several seconds (i.e. it can't keep up with movements - as if it is buffering first). I've only tested this with XenialDog64 mpv.

There is no such lag when using the mplayer available in XenialDog64 with "mplayer tv://" command but I'd like possibility of using mpv as alternative to mplayer if desired. Anyone come across an mpv lag fix for the above?

wiak

EDIT: I've tried creating ~/.config/mpv/mpv.conf and playing around with options like cache=nnn and demuxer-readahead-secs=nnn but not having any effect. Might not be doing it right but as I say mplayer works fine - webcam image keeps up with movements with no lags/delay at all.
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#358 Post by fredx181 »

Hi wiak, maybe try newer mpv, didn't test on XD, but I expect it works:
https://fredx181.github.io/bionicdog/Pa ... _amd64.deb

Fred
wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

#359 Post by wiak »

fredx181 wrote:Hi wiak, maybe try newer mpv, didn't test on XD, but I expect it works:
https://fredx181.github.io/bionicdog/Pa ... _amd64.deb

Fred
hmmm... well I tried installing that mpv you provided fred by right click install deb action from pcmanfm. However, that revealed there were missing dependencies, which I thought it was then auto-installing... But actually, it was installing a lot of other stuff (including mplayer...) whilst removing gnome-mplayer and mpv amongst some other stuff.

How best to install it? Maybe if I noted some of the apparently missing dependencies and installing them first? Sorry, haven't had time to try more.

wiak
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#360 Post by fredx181 »

Ah, sorry wiak, I should have tested first.
I changed a few dependency names, made a new package specially for Xenialdog64, added to 64bit repo, so a "apt-get update && apt-get install mpv" should upgrade to v0.27 (tested now :wink: )

Fred
Post Reply