Azitech

Azimout's Linux weblog

Archive for the ‘Uncategorized’ Category

glmark2

leave a comment »

sudo lspci -vnn |grep VGA -A 10
00:02.0 VGA compatible controller [0300]: Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 02) (prog-if 00 [VGA controller])
Subsystem: Hewlett-Packard Company Device [103c:7008]
Flags: bus master, fast devsel, latency 0, IRQ 46
Memory at d0000000 (64-bit, non-prefetchable) [size=4M]
Memory at c0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 5050 [size=8]
Expansion ROM at [disabled]
Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [a4] PCI Advanced Features
Kernel driver in use: i915

sudo glmark2
=======================================================
glmark2 2014.03
=======================================================
OpenGL Information
GL_VENDOR: Intel Open Source Technology Center
GL_RENDERER: Mesa DRI Intel(R) Ironlake Mobile
GL_VERSION: 2.1 Mesa 10.3.2
=======================================================
[build] use-vbo=false: FPS: 115 FrameTime: 8.696 ms
[build] use-vbo=true: FPS: 261 FrameTime: 3.831 ms
[texture] texture-filter=nearest: FPS: 423 FrameTime: 2.364 ms
[texture] texture-filter=linear: FPS: 428 FrameTime: 2.336 ms
[texture] texture-filter=mipmap: FPS: 422 FrameTime: 2.370 ms
[shading] shading=gouraud: FPS: 276 FrameTime: 3.623 ms
[shading] shading=blinn-phong-inf: FPS: 315 FrameTime: 3.175 ms
[shading] shading=phong: FPS: 240 FrameTime: 4.167 ms
[shading] shading=cel: FPS: 219 FrameTime: 4.566 ms
[bump] bump-render=high-poly: FPS: 165 FrameTime: 6.061 ms
[bump] bump-render=normals: FPS: 437 FrameTime: 2.288 ms
[bump] bump-render=height: FPS: 338 FrameTime: 2.959 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 252 FrameTime: 3.968 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 100 FrameTime: 10.000 ms
[pulsar] light=false:quads=5:texture=false: FPS: 375 FrameTime: 2.667 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 140 FrameTime: 7.143 ms
[desktop] effect=shadow:windows=4: FPS: 238 FrameTime: 4.202 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 61 FrameTime: 16.393 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 47 FrameTime: 21.277 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 60 FrameTime: 16.667 ms
[ideas] speed=duration: FPS: 191 FrameTime: 5.236 ms
[jellyfish] : FPS: 209 FrameTime: 4.785 ms
[terrain] : FPS: 19 FrameTime: 52.632 ms
[shadow] : FPS: 198 FrameTime: 5.051 ms
[refract] : FPS: 39 FrameTime: 25.641 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 450 FrameTime: 2.222 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 366 FrameTime: 2.732 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 464 FrameTime: 2.155 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 465 FrameTime: 2.151 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 401 FrameTime: 2.494 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 450 FrameTime: 2.222 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 450 FrameTime: 2.222 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 311 FrameTime: 3.215 ms
=======================================================
glmark2 Score: 270
=======================================================

Advertisements

Written by azimout

01/03/2015 at 21:57

Posted in Uncategorized

Script to automatically remove all but latest Linux kernel

leave a comment »

Here’s a bash script I wrote to automatically remove all but the latest installed Linux kernel.

I run it daily in a cron job.

#!/bin/bash

# find all vmlinuz files in /boot
# replace "/boot/vmlinuz" with "linux-image"
# sort and remove the last line
x=$(find /boot -name vmlinuz* -print | sed 's/\/boot\/vmlinuz/linux-image/' | sort | head -n -1)

# if there's more than one Linux kernel installed, remove all but the latest one
if [ ${#x} -ne 0 ]; then
 echo "removing" $x
 sudo apt-get purge $x
fi

Written by azimout

02/11/2014 at 19:10

Posted in Uncategorized

Android Wear

leave a comment »

I got a Moto 360 for my birthday. Here’s my non-exhaustive review after wearing it for 2 days.

The display is gorgeous. The watch wakes up automatically when you turn it to look at it (excellent work on the 3D accelerometer), so IMHO the ambient mode is not really necessary. This way I charge it every night and end the day with 30-35% of battery left.

The step counter is pretty neat; it remains to be seen whether it will change my behaviour or not. The heart rate monitor can’t find my pulse half the time.

My phone sends me all sorts of notifications to the watch, like weather forecasts, emails, messages, etc. I can delete, archive, dismiss the notification. I can even try to answer by voice dictation, but it’s not yet accurate enough for that.

I can use it to control the music playback. I also get navigation instructions when navigating on the phone, which is not really useful in the car.

The voice search works pretty well, but half the time it claims to be offline, ie not connected to my phone. I still need to figure this one out.

I can use it to set a timer, start a stopwatch or set an alarm.

But the most useful feature for me is the reminders for upcoming appointments in my calendar.

Written by azimout

01/11/2014 at 11:23

Posted in Uncategorized

Google Spreadsheet formula for calculating someone’s age

leave a comment »

=datedif(B2, today(), "Y") & " yrs, " & datedif(B2, today(), "YM") & " mnths, " & datedif(B2, today(), "MD") & " days"

(B2 is the birthdate)

Written by azimout

09/09/2014 at 09:38

Posted in Uncategorized

WordPress

leave a comment »

To install WordPress on a Debian system, do this (I’m assuming you have Apache and MySQL already):

  • sudo apt-get install wordpress
  • sudo cp /usr/share/doc/wordpress/examples/apache.conf /etc/apache2/sites-available/wordpress, and remove all lines but the ones you need
  • sudo a2ensite wordpress
  • sudo service apache2 reload

Written by azimout

13/01/2014 at 07:13

Posted in Uncategorized

pstree

leave a comment »

A rather useful Linux command that allows you to see all processes run by a user, along with their PIDs, in a tree format is pstree -Ap <user>

Written by azimout

09/01/2014 at 16:18

Posted in Uncategorized