All posts by zog

Ubuntu: intel graphics features stop working in 17.04 while using Intel Graphics Update Tool

mentioning this as it stopped me in my tracks for 2 or 3 hours while I
stuffed around reading logs and disconnecting monitors etc…

I did a routine update/reboot and my multimonitor and 3D etc stopped

This is on Xubuntu 17.04 with the more current Intel graphic stack from loaded so I can get all the Kaby Lake goodness with my my motherboard and CPU

Symptom: in dmesg I had

dmesg | grep drm
[ 0.832828] drm: loading out-of-tree module taints kernel.
[ 0.832941] drm: module verification failed: signature and/or
required key missing - tainting kernel
[ 0.850622] i915: Unknown symbol drm_mm_init_scan_with_range (err 0)
[ 0.850653] i915: Unknown symbol drm_kms_helper_poll_enable_locked
(err 0)
[ 0.850684] i915: Unknown symbol drm_crtc_get_hv_timing (err 0)
[ 0.850828] i915: Unknown symbol drm_mm_init_scan (err 0)
[ 0.850869] i915: Unknown symbol drm_mm_insert_node_in_range_generic
(err 0)
[ 3.204261] i915: Unknown symbol drm_mm_init_scan_with_range (err 0)
[ 3.204421] i915: Unknown symbol drm_kms_helper_poll_enable_locked
(err 0)
[ 3.204770] i915: Unknown symbol drm_crtc_get_hv_timing (err 0)
[ 3.205409] i915: Unknown symbol drm_mm_init_scan (err 0)
[ 3.205560] i915: Unknown symbol drm_mm_insert_node_in_range_generic
(err 0)
[ 3.243085] i915: Unknown symbol drm_mm_init_scan_with_range (err 0)
[ 3.243271] i915: Unknown symbol drm_kms_helper_poll_enable_locked
(err 0)
[ 3.243466] i915: Unknown symbol drm_crtc_get_hv_timing (err 0)
[ 3.244200] i915: Unknown symbol drm_mm_init_scan (err 0)
[ 3.244371] i915: Unknown symbol drm_mm_insert_node_in_range_generic
(err 0)

while a working box has

dmesg | grep drm
[ 1.082758] [drm] Initialized
[ 1.247377] [drm] Memory usable by graphics device = 2048M
[ 1.247381] fb: switching to inteldrmfb from VESA VGA
[ 1.247534] [drm] Replacing VGA console driver
[ 1.256114] [drm] Supports vblank timestamp caching Rev 2
[ 1.256116] [drm] Driver supports precise vblank timestamp query.
[ 1.276738] [drm] RC6 disabled, disabling runtime PM support
[ 1.286326] [drm] Initialized i915 1.6.0 20161121 for 0000:00:02.0
on minor 0
[ 1.329495] fbcon: inteldrmfb (fb0) is primary device
[ 1.329623] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device

Fix (after reading thru )

apt-get remove i915-4.11.6-4.10.0-dkms
apt-get install i915-4.11.6-4.10.0-dkms

to force a rebuild of this kernel module.. running the intel graphics
updater wont do it as it thinks its fine, but it refuses to load…

wordpress comment spam has become insane.. fail2ban to the rescue

This informative blog post shows how to configure the fail2ban software to prevent the idiotic comment spam from causing high load on the server. Of course the excellent Kismet plugin stops the vast majority of it from appearing, but even the constant POST attempts to pump spam into the server was causing high load.
One minor tweak is in the case of this blog I had to change:
failregex = ^ -.*POST /wordpress/wp-comments-post.php
failregex = ^ -.*POST /wp-comments-post.php
to match the URL location on this site, but otherwise now its blocking repeat comment posters, and the MySQL load is dropping.

replacement battery back for greenewheels bike found

I just quickly dropped in the 36V 9AH LiFePO4 battery pack I got from Value E Bikes and was pleasantly suprised it was a close, though not perfect fit.

value E bikes batter on greenEwheels bike

It did fit well enough that I felt confident going for a short test ride, and all was good.
For a longer ride I’ll fir it more snugly with some rubber matting and ratchet straps, but the fit is quite close. The “rail” the battery has to slide into place is quite differently sized from the greenewheels rail however.

vale E bikes battery pack on greenEwheels bike

Next step, range tests, after a visit to the $2 shop for mounting hardware.

I did have to remove one of the cable holders as the battery is taller, so that the DC out lead would fit.

update 1 week later
We’ll I’ve clocked up 80k in a few rides to work and the battery is working great so far. I would have ridden more except its been rainy. Havn’t done a full range test but no apparent loss of power after 22km, so looking good.

opening up the greenewheels 36V 10AH battery pack

Some quick notes:
Battery contains 10 cells strapped together with blue heatsrhink plastic stuff.
Cells measure 4.2V (no load) so I’m guessing 3.7 V when loaded.
Sticker on it contains phone number from which I am able to determine the battery was sourced from here.

Info is:
Model: JX-6 JX-6
Brand: Xin power
Operating current is 6A; maximum discharge current of 15A; size of 32 × 55 × 70mm (length × width × height); weighs approximately 310 grams. May form a 7.2V/10Ah (2 series), 10.8V/10Ah (3 series), 14.4V/10Ah (4 string), 24V/10Ah (7 string), 36V/10Ah (10 strings) and other forms of power.

The dimensions mentioned also match the right dimensions from measuring one of the cells after peeling back the plastic wrapper. Still havent been able to get the whole pack of cells out as they seem to be glued in hard!

Googling around I see these cells available, which might be a very close match? the ones listed as LT-325570

Peeling back the plastic wrapping on one of the cells it just has a barcode and the numbers “070806B 325670 0115”.

Another option is to get a 36V 10AH pack from Ping. The one listed is too square, but this blog post indicates these packs work perfectly with the greenewheelsbike, and the comment indicates Ping will pack the batteries in a longer narrrower packing if requested:

I did write to Ping to see if he could make me one that would fit in the battery space better, to accomodate my narrower shimano bottom bracket. He was most helpful, and wrote back with this:

[Yes, we can make it in different size. We can make the 36v10ah pack in size of 300x105x80mm. Is it suitable?